Modules§
Structs§
- Connack
- Connack packet (MQTT 3.2).
- Connect
- Connect packet (MQTT 3.1).
- Last
Will - Message that the server should publish when the client disconnects.
- Pid
- Packet Identifier.
- Publish
- Publish packet (MQTT 3.3).
- Suback
- Subsack packet (MQTT 3.9).
- Subscribe
- Subscribe packet (MQTT 3.8).
- Subscribe
Topic - Subscribe topic.
- Unsubscribe
- Unsubscribe packet (MQTT 3.10).
Enums§
- Connect
Return Code - Sucess value of a Connack packet.
- Error
- Errors returned by
encode()anddecode(). - Packet
- Base enum for all MQTT packet types.
- Packet
Type - Packet type variant, without the associated data.
- Protocol
- Protocol version.
- QoS
- Packet delivery Quality of Service level.
- QosPid
- Combined
QoS/Pid. - Subscribe
Return Codes - Subscribe return value.
Functions§
- decode_
slice - encode_
slice - Encode a Packet enum into a u8 slice.