Skip to main content

ConnectedSink

Trait ConnectedSink 

Source
pub trait ConnectedSink {
    type Input: Send;
    type Sink: Sink<Self::Input, Error = Error> + Send + Sync;

    // Required method
    fn into_sink(self) -> Self::Sink;
}

Required Associated Types§

Source

type Input: Send

Source

type Sink: Sink<Self::Input, Error = Error> + Send + Sync

Required Methods§

Source

fn into_sink(self) -> Self::Sink

Implementors§

Source§

impl ConnectedSink for ConnectedDirect

Source§

type Input = Bytes

Source§

type Sink = Pin<Box<dyn Sink<Bytes, Error = Error> + Send + Sync>>

Source§

impl<T: ConnectedSink> ConnectedSink for ConnectedDemux<T>
where <T as ConnectedSink>::Input: 'static + Sync,

Source§

type Input = (u32, <T as ConnectedSink>::Input)

Source§

type Sink = DemuxMap<u32, Pin<Box<Buffer<<T as ConnectedSink>::Sink, <T as ConnectedSink>::Input>>>>