Struct mqtt::control::fixed_header::FixedHeader [−][src]
pub struct FixedHeader {
pub packet_type: PacketType,
pub remaining_length: u32,
}Expand description
Fixed header for each MQTT control packet
Format:
7 3 0
+--------------------------+--------------------------+
| MQTT Control Packet Type | Flags for each type |
+--------------------------+--------------------------+
| Remaining Length ... |
+-----------------------------------------------------+Fields
packet_type: PacketTypePacket Type
remaining_length: u32The Remaining Length is the number of bytes remaining within the current packet, including data in the variable header and the payload. The Remaining Length does not include the bytes used to encode the Remaining Length.
Implementations
Trait Implementations
type Error = FixedHeaderError
Decodes object with additional data (or hints)
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for FixedHeader
impl Send for FixedHeader
impl Sync for FixedHeader
impl Unpin for FixedHeader
impl UnwindSafe for FixedHeader
Blanket Implementations
Mutably borrows from an owned value. Read more