pub enum TimerKind {
PingreqSend,
PingreqRecv,
PingrespRecv,
}
Expand description
Represents different types of MQTT timers
This enum defines the different kinds of timers used in MQTT protocol operations. Each timer serves a specific purpose in maintaining connection health and protocol compliance.
Variants§
PingreqSend
Timer for sending PINGREQ packets
This timer is used by MQTT clients to schedule periodic PINGREQ packets to keep the connection alive. The interval is typically determined by the keep-alive value negotiated during connection establishment.
PingreqRecv
Timer for receiving PINGREQ packets
This timer is used by MQTT servers (brokers) to detect when a client has not sent a PINGREQ packet within the expected timeframe, indicating a potentially disconnected or unresponsive client.
PingrespRecv
Timer for receiving PINGRESP packets
This timer is used by MQTT clients to detect when a server has not responded to a PINGREQ packet with a PINGRESP within the expected timeframe, indicating a potentially disconnected or unresponsive server.
Trait Implementations§
impl Copy for TimerKind
impl Eq for TimerKind
impl StructuralPartialEq for TimerKind
Auto Trait Implementations§
impl Freeze for TimerKind
impl RefUnwindSafe for TimerKind
impl Send for TimerKind
impl Sync for TimerKind
impl Unpin for TimerKind
impl UnwindSafe for TimerKind
Blanket Implementations§
Source§impl<T> AsConcrete<T> for T
impl<T> AsConcrete<T> for T
fn as_concrete(&self) -> Option<&T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.