pub struct ReliableControlChannel<T> { /* private fields */ }Expand description
Minimal reliability layer for control envelopes with retransmissions and replay protection.
Implementations§
Source§impl<T> ReliableControlChannel<T>
impl<T> ReliableControlChannel<T>
Source§impl<T> ReliableControlChannel<T>where
T: HandshakeTransport + Send,
impl<T> ReliableControlChannel<T>where
T: HandshakeTransport + Send,
pub async fn send_reliable( &mut self, envelope: ControlEnvelope, ) -> Result<Acknowledge, HandshakeError>
pub fn next_seq(&mut self) -> u64
Auto Trait Implementations§
impl<T> Freeze for ReliableControlChannel<T>where
T: Freeze,
impl<T> RefUnwindSafe for ReliableControlChannel<T>where
T: RefUnwindSafe,
impl<T> Send for ReliableControlChannel<T>where
T: Send,
impl<T> Sync for ReliableControlChannel<T>where
T: Sync,
impl<T> Unpin for ReliableControlChannel<T>where
T: Unpin,
impl<T> UnwindSafe for ReliableControlChannel<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more