Module v4

Module v4 

Source

Modules§

connect
decoder
encoder
packet
publish
subscribe
utils

Structs§

Connack
Connack packet (MQTT 3.2).
Connect
Connect packet (MQTT 3.1).
LastWill
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).
SubscribeTopic
Subscribe topic.
Unsubscribe
Unsubscribe packet (MQTT 3.10).

Enums§

ConnectReturnCode
Sucess value of a Connack packet.
Error
Errors returned by encode() and decode().
Packet
Base enum for all MQTT packet types.
PacketType
Packet type variant, without the associated data.
Protocol
Protocol version.
QoS
Packet delivery Quality of Service level.
QosPid
Combined QoS/Pid.
SubscribeReturnCodes
Subscribe return value.

Functions§

decode_slice
encode_slice
Encode a Packet enum into a u8 slice.