Trait samotop::util::IntoTee[][src]

pub trait IntoTee: Sized {
    fn tee<H>(
        self,
        junction: H
    ) -> Tee<Forward<Self, SplitSink<H>>, SplitStream<H>>
    where
        Self: Stream,
        H: Sink<SinkItem = Self::Item, SinkError = Self::Error>,
        H: Stream<Error = Self::Error>
, { ... } }

Any Streem Self can be 'tee'd into another Sink+Stream J so that items from stream A are forwarded into sink J and the resulting stream picks items from stream J

Provided Methods

tee Stream Self into another Sink+Stream J so that items from stream A are forwarded into sink J and the resulting stream picks items from stream J

Implementors