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