Struct mqtt::control::variable_header::KeepAlive
source · pub struct KeepAlive(pub u16);
Expand description
Keep alive time interval
Tuple Fields§
§0: u16
Trait Implementations§
source§impl Decodable for KeepAlive
impl Decodable for KeepAlive
type Error = VariableHeaderError
type Cond = ()
source§fn decode_with<R: Read>(
reader: &mut R,
_rest: ()
) -> Result<KeepAlive, VariableHeaderError>
fn decode_with<R: Read>( reader: &mut R, _rest: () ) -> Result<KeepAlive, VariableHeaderError>
Decodes object with additional data (or hints)
source§impl PartialEq for KeepAlive
impl PartialEq for KeepAlive
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 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