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