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