Crate mqtt_bytes_v5

Source

Structs§

ConnAck
Acknowledgement to connect packet
ConnAckProperties
Connect
Connection packet initiated by the client
ConnectProperties
Disconnect
DisconnectProperties
Filter
Subscription filter
FixedHeader
Packet type from a byte
LastWill
LastWill that broker forwards on behalf of the client
LastWillProperties
Login
PingReq
PingResp
PubAck
Acknowledgement to QoS1 publish
PubAckProperties
PubComp
QoS2 Assured publish complete, in response to PUBREL packet
PubCompProperties
PubRec
Acknowledgement to QoS1 publish
PubRecProperties
PubRel
QoS2 Publish release, in response to PUBREC packet
PubRelProperties
Publish
Publish packet
PublishProperties
SubAck
Acknowledgement to subscribe
SubAckProperties
Subscribe
Subscription packet
SubscribeProperties
UnsubAck
Acknowledgement to unsubscribe
UnsubAckProperties
Unsubscribe
Unsubscribe packet
UnsubscribeProperties

Enums§

ConnectReturnCode
Return code in connack
DisconnectReasonCode
Error
Error during serialization and deserialization
Packet
PacketType
MQTT packet type
PubAckReason
Return code in puback
PubCompReason
Return code in PubComp
PubRecReason
Return code in PubRec
PubRelReason
Return code in PubRel
QoS
Quality of service
RetainForwardRule
SubscribeReasonCode
UnsubAckReason

Functions§

check
Checks if the stream has enough bytes to frame a packet and returns fixed header only if a packet can be framed with existing bytes in the stream. The passed stream doesn’t modify parent stream’s cursor. If this function returned an error, next check on the same parent stream is forced start with cursor at 0 again (Iter is owned. Only Iter’s cursor is changed internally)
mqtt_string_new
qos
Maps a number to QoS