pub trait IntoBoxStream: Stream {
    // Provided method
    fn into_boxed(self) -> BoxStream<Self::Item>
       where Self: Sized + Send + Sync + 'static { ... }
}
Expand description

Helper trait to create a BoxStream from a Stream

Provided Methods§

source

fn into_boxed(self) -> BoxStream<Self::Item>where Self: Sized + Send + Sync + 'static,

Convert this stream into a BoxStream.

Implementors§

source§

impl<S> IntoBoxStream for Swhere S: Stream + Send + Sync + 'static,