pub enum KeepAlive {
Infinite,
Seconds(NonZero<u16>),
}Expand description
Keep alive mechanism within a connection.
Variants§
Infinite
There is no keep alive mechanism. Any amount of time can pass between 2 MQTT packets
Seconds(NonZero<u16>)
The maximum time interval in seconds allowed to pass between 2 MQTT packets.
Must be greater than 0.
Trait Implementations§
impl Copy for KeepAlive
impl Eq for KeepAlive
impl StructuralPartialEq for KeepAlive
Auto Trait Implementations§
impl Freeze for KeepAlive
impl RefUnwindSafe for KeepAlive
impl Send for KeepAlive
impl Sync for KeepAlive
impl Unpin for KeepAlive
impl UnsafeUnpin for KeepAlive
impl UnwindSafe for KeepAlive
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