Struct mqtt::control::variable_header::keep_alive::KeepAlive [] [src]

pub struct KeepAlive(pub u16);

Trait Implementations

impl Clone for KeepAlive
[src]

fn clone(&self) -> KeepAlive

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for KeepAlive
[src]

impl PartialEq for KeepAlive
[src]

fn eq(&self, __arg_0: &KeepAlive) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &KeepAlive) -> bool

This method tests for !=.

impl Eq for KeepAlive
[src]

impl Debug for KeepAlive
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a> Encodable<'a> for KeepAlive
[src]

type Err = VariableHeaderError

fn encode<W: Write>(&self, writer: &mut W) -> Result<()VariableHeaderError>

fn encoded_length(&self) -> u32

impl<'a> Decodable<'a> for KeepAlive
[src]

type Err = VariableHeaderError

type Cond = ()

fn decode_with<R: Read>(reader: &mut R, _rest: Option<()>) -> Result<KeepAliveVariableHeaderError>

fn decode<R: Read>(reader: &mut R) -> Result<Self, Self::Err>