pub trait IntoBoxStream: Stream {
// Provided methods
fn into_boxed(self) -> BoxStream<Self::Item>
where Self: Sized + Send + Sync + 'static { ... }
fn into_boxed_ref<'a>(self) -> RefBoxStream<'a, Self::Item>
where Self: Sized + Send + 'a { ... }
}
Expand description
Helper trait to create a BoxStream from a Stream
Provided Methods§
sourcefn into_boxed(self) -> BoxStream<Self::Item>
fn into_boxed(self) -> BoxStream<Self::Item>
Convert this stream into a BoxStream
.
sourcefn into_boxed_ref<'a>(self) -> RefBoxStream<'a, Self::Item>
fn into_boxed_ref<'a>(self) -> RefBoxStream<'a, Self::Item>
Convert this stream into a RefBoxStream
.