Trait Stream

Source
pub trait Stream:
    AsyncRead
    + AsyncWrite
    + Unpin
    + Send
    + 'static {
    // Provided method
    fn downcast<S: Stream + 'static>(self) -> Result<S, Self>
       where Self: Sized + 'static { ... }
}

Provided Methods§

Source

fn downcast<S: Stream + 'static>(self) -> Result<S, Self>
where Self: Sized + 'static,

Implementors§

Source§

impl<T> Stream for T
where T: AsyncRead + AsyncWrite + Unpin + Send + 'static,