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 KeepAlive
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for KeepAlive
[src]
impl Eq for KeepAlive
impl PartialEq for KeepAlive
[src]
impl PartialEq for KeepAlive
fn eq(&self, other: &KeepAlive) -> bool
[src]
fn eq(&self, other: &KeepAlive) -> bool
This 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) -> bool
This method tests for !=
.
impl Copy for KeepAlive
[src]
impl Copy for KeepAlive
impl Clone for KeepAlive
[src]
impl Clone for KeepAlive
fn clone(&self) -> KeepAlive
[src]
fn clone(&self) -> KeepAlive
Returns 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 KeepAlive
type 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) -> u32
Length of bytes after encoded
impl Decodable for KeepAlive
[src]
impl Decodable for KeepAlive