Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
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 send_to_addr(&self, buf: &[u8], socket_addr: &SocketAddr) -> io::Result<usize>
Sends data on the socket to the specified SocketAddr.
method std Stable since 1.70.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn send_to<P>(&self, buf: &[u8], path: P) -> io::Result<usize>
Sends data on the socket to the specified address.
method std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn send(&self, buf: &[u8]) -> io::Result<usize>
Sends data on the socket to the socket's peer.
method std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn recv_from(&self, buf: &mut [u8]) -> io::Result<(usize, SocketAddr)>
Receives data from the socket.
method std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn recv(&self, buf: &mut [u8]) -> io::Result<usize>
Receives data from the socket.
method std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn read_timeout(&self) -> io::Result<Option<Duration>>
Returns the read timeout of this socket.
method std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn peer_addr(&self) -> io::Result<SocketAddr>
Returns the address of this socket's peer.
method std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn pair() -> io::Result<(UnixDatagram, UnixDatagram)>
Creates an unnamed pair of connected sockets.
associated_function 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 address of this socket.
method std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn connect_addr(&self, socket_addr: &SocketAddr) -> io::Result<()>
Connects the socket to an address.
method std Stable since 1.70.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn connect<P>(&self, path: P) -> io::Result<()>
Connects the socket to the specified path address.
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<UnixDatagram>
Creates a Unix datagram socket bound to an 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<UnixDatagram>
Creates a Unix datagram socket bound to the given path.
associated_function std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct UnixDatagram
A Unix datagram socket.
struct std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn is_unnamed(&self) -> bool
Returns true if the address is unnamed.
method std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn from_pathname<P>(path: P) -> io::Result<SocketAddr>
Constructs a SockAddr with the family AF_UNIX and the provided path.
associated_function std Stable since 1.61.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn as_pathname(&self) -> Option<&Path>
Returns the contents of this address if it is a pathname address.
method std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct SocketAddr
An address associated with a Unix socket.
struct std Stable since 1.10.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod net
Unix-specific networking functionality.
module std Stable since 1.10.0 Version 1.100.0-nightly
"Well, the answer is basically yes. Our firmware is all Rust. Every component of our autonomy stack is Rust. Our app is 50% in Rust. And, our visualiza..."

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.