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§
fn pipe<P>(self, pipe: P) -> StreamPipe<Self, P>
fn sink<S>(self, sink: S) -> StreamSink<Self, S> ⓘ
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".