#[non_exhaustive]pub enum OnTimeout {
Retransmit {
counter: u32,
attempt: u32,
},
SendStandaloneAck {
counter: u32,
},
GiveUp {
counter: u32,
},
Nothing,
}Expand description
What the sender should do when a retransmission timer fires.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Retransmit
Send the message again; this is attempt number attempt (zero-based).
Fields
SendStandaloneAck
Send the standalone acknowledgement that has been waiting for a piggyback ride.
GiveUp
MRP_MAX_TRANSMISSIONS attempts have gone by unacknowledged. §4.12.2.1: the
sender gives up and, in the specification’s words, notifies the application.
Nothing
The deadline that fired was not one this state machine set.
Trait Implementations§
impl Copy for OnTimeout
impl Eq for OnTimeout
impl StructuralPartialEq for OnTimeout
Auto Trait Implementations§
impl Forget for OnTimeout
impl Freeze for OnTimeout
impl Move for OnTimeout
impl RefUnwindSafe for OnTimeout
impl Send for OnTimeout
impl Sync for OnTimeout
impl Unpin for OnTimeout
impl UnsafeUnpin for OnTimeout
impl UnwindSafe for OnTimeout
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