pub trait Share: Stream {
// Required method
fn shared(self) -> Shared<Self>
where Self: Sized,
Self::Item: Clone;
}
Required Methods§
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.