StreamExt

Trait StreamExt 

Source
pub trait StreamExt: Stream {
    // Provided method
    fn fork(self) -> Forked<Self>
       where Self: Sized,
             Self::Item: Clone { ... }
}
Expand description

An extension trait that enables Streams to be forked.

Provided Methods§

Source

fn fork(self) -> Forked<Self>
where Self: Sized, Self::Item: Clone,

Turns a steam into a cloneable stream. Polled items are cached and cloned.

This method consumes the source stream and returns its wrapped version.

Implementors§

Source§

impl<S> StreamExt for S
where S: Stream,