Struct mqtt3::Header [] [src]

pub struct Header {
    pub typ: PacketType,
    pub len: usize,
    // some fields omitted
}

Fields

typ: PacketType len: usize

Methods

impl Header
[src]

fn new(hd: u8, len: usize) -> Result<Header>

fn dup(&self) -> bool

fn qos(&self) -> Result<QoS>

fn retain(&self) -> bool

Trait Implementations

impl PartialEq for Header
[src]

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

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

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

This method tests for !=.

impl Clone for Header
[src]

fn clone(&self) -> Header

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 Debug for Header
[src]

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

Formats the value using the given formatter.