StreamExt

Trait StreamExt 

Source
pub trait StreamExt: Stream {
    // Provided methods
    fn pipe<P>(self, pipe: P) -> StreamPipe<Self, P>
       where P: Pipe<Self::Item>,
             Self: Sized { ... }
    fn sink<S>(self, sink: S) -> StreamSink<Self, S> 
       where S: Sink<Self::Item>,
             Self: Sized { ... }
}

Provided Methods§

Source

fn pipe<P>(self, pipe: P) -> StreamPipe<Self, P>
where P: Pipe<Self::Item>, Self: Sized,

Source

fn sink<S>(self, sink: S) -> StreamSink<Self, S>
where S: Sink<Self::Item>, Self: Sized,

Implementors§

Source§

impl<S> StreamExt for S
where S: Stream + ?Sized,