pub trait ReliableSink {
    type CustomErr: Debug + Send;

    // Required method
    fn recv<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<InitFrame, ProtocolError<Self::CustomErr>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Implement this for auto Handshake with ReliableDrain. See ReliableDrain.

Required Associated Types§

Required Methods§

source

fn recv<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<InitFrame, ProtocolError<Self::CustomErr>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl<S> ReliableSink for MpscRecvProtocol<S>
where S: UnreliableSink<DataFormat = MpscMsg>,

source§

impl<S> ReliableSink for QuicRecvProtocol<S>
where S: UnreliableSink<DataFormat = QuicDataFormat>,

source§

impl<S> ReliableSink for TcpRecvProtocol<S>
where S: UnreliableSink<DataFormat = BytesMut>,