pub trait Stream:
Sized
+ Send
+ Sync
+ Read
+ Write {
// Required methods
fn try_clone(&self) -> Result<Self>;
fn set_nonblocking(&self, nonblocking: bool) -> Result<()>;
fn shutdown(&self, how: Shutdown) -> Result<()>;
}
Expand description
An abstraction over network streams.
Required Methods§
sourcefn try_clone(&self) -> Result<Self>
fn try_clone(&self) -> Result<Self>
Creates a new independently owned handle to the underlying stream.
sourcefn set_nonblocking(&self, nonblocking: bool) -> Result<()>
fn set_nonblocking(&self, nonblocking: bool) -> Result<()>
Moves this stream into or out of nonblocking mode.
Object Safety§
This trait is not object safe.