fuel_core_services::stream

Trait IntoBoxStream

source
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§

source

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

Convert this stream into a BoxStream.

source

fn into_boxed_ref<'a>(self) -> RefBoxStream<'a, Self::Item>
where Self: Sized + Send + 'a,

Convert this stream into a RefBoxStream.

Implementors§

source§

impl<S> IntoBoxStream for S
where S: Stream + Send,