Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
fn to_socket_addrs(&self) -> io::Result<<Self as >::Iter>
Converts this object to an iterator of resolved SocketAddrs.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
type Iter
Returned iterator over socket addresses which this type may correspond to.
associated_type std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub trait ToSocketAddrs
A trait for objects which can be converted or resolved to one or more SocketAddr values.
trait std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub enum Shutdown
Possible values which can be passed to the TcpStream::shutdown method.
enum std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub mod net
Networking primitives for TCP/UDP communication.
module std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
primitive isize
The pointer-sized signed integer type.
primitive std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn stdout() -> Stdout
Constructs a new handle to the standard output of the current process.
function std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn stdin() -> Stdin
Constructs a new handle to the standard input of the current process.
function std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn stderr() -> Stderr
Constructs a new handle to the standard error of the current process.
function std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct StdoutLock<'a>
A locked reference to the Stdout handle.
struct std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn lock(&self) -> StdoutLock<'static>
Locks this handle to the standard output stream, returning a writable guard.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Stdout
A handle to the global standard output stream of the current process.
struct std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct StdinLock<'a>
A locked reference to the Stdin handle.
struct std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn read_line(&self, buf: &mut String) -> io::Result<usize>
Locks this handle and reads a line of input, appending it to the specified buffer.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn lock(&self) -> StdinLock<'static>
Locks this handle to the standard input stream, returning a readable guard.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn lines(self) -> Lines<StdinLock<'static>>
Consumes this handle and returns an iterator over input lines.
method std Stable since 1.62.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Stdin
A handle to the standard input stream of a process.
struct std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct StderrLock<'a>
A locked reference to the Stderr handle.
struct std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub fn lock(&self) -> StderrLock<'static>
Locks this handle to the standard error stream, returning a writable guard.
method std Stable since 1.0.0 Version 1.100.0-nightly
doc.rust-lang.org
pub struct Stderr
A handle to the standard error stream of a process.
struct std Stable since 1.0.0 Version 1.100.0-nightly
"Language stability is not just about semver compatibility. It's also about not burdening developers to have to make new decisions when looking at old ..."

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.