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,