Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub fn connect_addr(socket_addr: &SocketAddr) -> io::Result<UnixStream>
Connects to the socket specified by address.
associated_function std Stable since 1.70.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn connect<P>(path: P) -> io::Result<UnixStream>
Connects to the socket named by path.
associated_function std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct UnixStream
A Unix stream socket.
struct std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn try_clone(&self) -> io::Result<UnixListener>
Creates a new independently owned handle to the underlying socket.
method std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn take_error(&self) -> io::Result<Option<io::Error>>
Returns the value of the SO_ERROR option.
method std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn set_nonblocking(&self, nonblocking: bool) -> io::Result<()>
Moves the socket into or out of nonblocking mode.
method std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn local_addr(&self) -> io::Result<SocketAddr>
Returns the local socket address of this listener.
method std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn incoming(&self) -> Incoming<'_>
Returns an iterator over incoming connections.
method std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn bind_addr(socket_addr: &SocketAddr) -> io::Result<UnixListener>
Creates a new UnixListener bound to the specified socket address.
associated_function std Stable since 1.70.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn bind<P>(path: P) -> io::Result<UnixListener>
Creates a new UnixListener bound to the specified socket.
associated_function std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn accept(&self) -> io::Result<(UnixStream, SocketAddr)>
Accepts a new incoming connection to this listener.
method std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct UnixListener
A structure representing a Unix domain socket server.
struct std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Incoming<'a>
An iterator over incoming connections to a UnixListener.
struct std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn write_timeout(&self) -> io::Result<Option<Duration>>
Returns the write timeout of this socket.
method std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn unbound() -> io::Result<UnixDatagram>
Creates a Unix Datagram socket which is not bound to any address.
associated_function std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn try_clone(&self) -> io::Result<UnixDatagram>
Creates a new independently owned handle to the underlying socket.
method std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn take_error(&self) -> io::Result<Option<io::Error>>
Returns the value of the SO_ERROR option.
method std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn shutdown(&self, how: Shutdown) -> io::Result<()>
Shut down the read, write, or both halves of this connection.
method std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn set_write_timeout(&self, timeout: Option<Duration>) -> io::Result<()>
Sets the write timeout for the socket.
method std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn set_read_timeout(&self, timeout: Option<Duration>) -> io::Result<()>
Sets the read timeout for the socket.
method std Stable since 1.10.0 Version 1.100.0-nightly
"durka42: IMO the name "dangling" is scary enough :) Havvy gives durka42 a ptr::dangling::<Candy>(). durka42 declines to unwrap() it"

Search tips

Type anything to search across articles, videos (including conference talks), podcasts, research, crates, and Rust API documentation. These operators give you finer control — click an example to try it.

Find pages containing all your words. Pages where the words appear together rank higher.
Quote part of your query to keep those words together as an exact phrase within a larger search.
Wrap the whole query in quotes for a verbatim search that matches text exactly, punctuation and all — perfect for Rust syntax. Needs at least 3 characters.
Put ! first to open the top result immediately. Quote the whole query for a literal leading bang, as in '!Send'. Bangs elsewhere, such as println!, stay literal. Browser and launcher shortcuts can invoke this directly. See search integrations.
Limit results to a single site. Works on its own () too. One site: per search.

Use the tabs and filters above the results to narrow by content type, publication year, and sort order.