Expand description
§MQTT Packet Structures and Serialization
This module defines the core MQTT packet types and the traits for encoding and decoding them to and from a byte buffer. It supports both MQTT v3.1.1 and v5 through conditional compilation.
Structs§
Enums§
- Mqtt
Packet - An enumeration of all possible MQTT control packets.
- QoS
- Represents the Quality of Service (QoS) levels for MQTT messages.
Traits§
- Decode
Packet - A trait for packets that can be decoded from a byte buffer.
- Encode
Packet - A trait for packets that can be encoded into a byte buffer.
Functions§
- decode
- Decodes a raw byte buffer into a specific
MqttPacket
.