Struct mqtt::control::packet_type::PacketType[][src]

pub struct PacketType {
    pub control_type: ControlType,
    pub flags: u8,
}

Packet type

Fields

Methods

impl PacketType
[src]

Creates a packet type

Creates a packet type with default flags

http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#Table_2.2-

To code

From code

Trait Implementations

impl Debug for PacketType
[src]

Formats the value using the given formatter. Read more

impl Eq for PacketType
[src]

impl PartialEq for PacketType
[src]

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

This method tests for !=.

impl Copy for PacketType
[src]

impl Clone for PacketType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for PacketType

impl Sync for PacketType