IntoStream

Trait IntoStream 

Source
pub trait IntoStream<T> {
    // Required method
    fn into_stream(self) -> Rc<dyn Stream<T>>;
}
Expand description

Used to consume a concrete Stream and return an Rc<dyn Stream>>.

Required Methods§

Source

fn into_stream(self) -> Rc<dyn Stream<T>>

Implementors§

Source§

impl<T, STREAM> IntoStream<T> for STREAM
where T: Clone + 'static, STREAM: StreamPeekRef<T> + 'static,