pub trait ReliableDrain {
type CustomErr: Debug + Send;
// Required method
fn send<'life0, 'async_trait>(
&'life0 mut self,
frame: InitFrame,
) -> Pin<Box<dyn Future<Output = Result<(), ProtocolError<Self::CustomErr>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Implement this for auto Handshake with ReliableSink
.
You must make sure that EVERY message send this way actually is received on
the receiving site:
- exactly once
- in the correct order
- correctly