pub enum SenderAction {
Transmit {
seq: SequenceCount,
rto_ticks: u32,
},
StopTimer {
seq: SequenceCount,
},
PacketLost {
seq: SequenceCount,
},
MessageLost,
SpaceAvailable {
bytes: usize,
},
}Expand description
Actions the sender machine wants the driver to perform.
Variants§
Transmit
Transmit a packet and start its retransmission timer.
Call get_payload(seq) to get the payload data.
Fields
§
seq: SequenceCountSequence number to transmit.
StopTimer
Stop a retransmission timer.
Fields
§
seq: SequenceCountSequence number whose timer should be stopped.
PacketLost
A packet was permanently lost (max retransmits exceeded).
Fields
§
seq: SequenceCountSequence number of the lost packet.
MessageLost
A segmented message was lost (a packet from it was permanently lost).
SpaceAvailable
Send buffer has space available (for backpressure signaling).
Trait Implementations§
Source§impl Clone for SenderAction
impl Clone for SenderAction
Source§fn clone(&self) -> SenderAction
fn clone(&self) -> SenderAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SenderAction
impl Debug for SenderAction
Source§impl PartialEq for SenderAction
impl PartialEq for SenderAction
impl Copy for SenderAction
impl Eq for SenderAction
impl StructuralPartialEq for SenderAction
Auto Trait Implementations§
impl Freeze for SenderAction
impl RefUnwindSafe for SenderAction
impl Send for SenderAction
impl Sync for SenderAction
impl Unpin for SenderAction
impl UnsafeUnpin for SenderAction
impl UnwindSafe for SenderAction
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