Struct mqtt::control::variable_header::KeepAlive
[−]
[src]
pub struct KeepAlive(pub u16);
Keep alive time interval
Trait Implementations
impl Debug for KeepAlive[src]
impl Eq for KeepAlive[src]
impl PartialEq for KeepAlive[src]
fn eq(&self, __arg_0: &KeepAlive) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &KeepAlive) -> bool[src]
This method tests for !=.
impl Copy for KeepAlive[src]
impl Clone for KeepAlive[src]
fn clone(&self) -> KeepAlive[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<'a> Encodable<'a> for KeepAlive[src]
type Err = VariableHeaderError
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), VariableHeaderError>[src]
Encodes to writer
fn encoded_length(&self) -> u32[src]
Length of bytes after encoded