Trait shared_stream::Share[][src]

pub trait Share: Stream {
    fn shared(self) -> Shared<Self::Item, Self>
    where
        Self: Sized,
        Self::Item: Clone
; }

An extension trait implemented for Streams that provides the shared method.

Required methods

fn shared(self) -> Shared<Self::Item, Self> where
    Self: Sized,
    Self::Item: Clone
[src]

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

Note that this function consumes the stream passed into it and returns a wrapped version of it.

Loading content...

Implementors

impl<T: Stream> Share for T where
    T::Item: Clone
[src]

Loading content...