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
.