pub enum Timer {
Off,
On {
expires_ms: u32,
retrans: u8,
},
Keepalive {
expires_ms: u32,
probes: u8,
},
TimeWait {
expires_ms: u32,
},
Probe {
expires_ms: u32,
retrans: u8,
},
}Expand description
Timer information.
Variants§
Off
No timer active.
On
Retransmit timer.
Keepalive
Keepalive timer.
TimeWait
TIME-WAIT timer.
Probe
Zero window probe timer.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Timer
impl<'de> Deserialize<'de> for Timer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Timer
impl Eq for Timer
impl StructuralPartialEq for Timer
Auto Trait Implementations§
impl Freeze for Timer
impl RefUnwindSafe for Timer
impl Send for Timer
impl Sync for Timer
impl Unpin for Timer
impl UnwindSafe for Timer
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