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> + Sync + Send>>

Source§

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