pub enum SenderEvent<'a> {
SendRequest {
target: Address,
data: &'a [u8],
},
AckReceived {
cumulative_ack: SequenceCount,
selective_bitmap: u16,
},
RetransmitTimeout {
seq: SequenceCount,
},
}Expand description
Events that drive the sender state machine.
Variants§
SendRequest
Application wants to send data.
AckReceived
An ACK packet was received from the remote.
Fields
§
cumulative_ack: SequenceCountHighest contiguously acknowledged sequence number.
RetransmitTimeout
A retransmission timer expired for a specific packet.
Fields
§
seq: SequenceCountSequence number of the timed-out packet.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SenderEvent<'a>
impl<'a> RefUnwindSafe for SenderEvent<'a>
impl<'a> Send for SenderEvent<'a>
impl<'a> Sync for SenderEvent<'a>
impl<'a> Unpin for SenderEvent<'a>
impl<'a> UnsafeUnpin for SenderEvent<'a>
impl<'a> UnwindSafe for SenderEvent<'a>
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