pub trait Stream:
AsyncRead
+ AsyncWrite
+ StreamMetadata
+ Send
+ Unpin
+ AsHandle
+ 'static {
// Provided methods
fn downcast<S: Stream + 'static>(self) -> Result<S, Self>
where Self: Sized + 'static { ... }
fn boxed(self) -> Box<dyn Stream + Send>
where Self: Sized + 'static { ... }
}
Expand description
A convenience trait for streams from this crate.