Skip to main content

Module packet

Module packet 

Expand description

Control packet types. Zero-copy decode, borrowed from the input buffer.

Modulesยง

ack ๐Ÿ”’
auth ๐Ÿ”’
connack ๐Ÿ”’
connect ๐Ÿ”’
disconnect ๐Ÿ”’
id_payload ๐Ÿ”’
measured ๐Ÿ”’
publish ๐Ÿ”’
reason_code ๐Ÿ”’
reason_header ๐Ÿ”’
suback ๐Ÿ”’
subscribe ๐Ÿ”’
unsuback ๐Ÿ”’
unsubscribe ๐Ÿ”’

Structsยง

Ack
Acknowledgement packet (PUBACK, PUBREC, PUBREL, PUBCOMP).
Auth
AUTH packet for enhanced authentication.
Connack
CONNACK packet sent by the server in response to CONNECT.
Connect
CONNECT packet sent by the client to initiate a session.
Disconnect
DISCONNECT packet signaling connection termination.
Measured
A packet whose Remaining Length fits in a Variable Byte Integer.
Publish
A PUBLISH to send.
ReceivedPublish
A decoded PUBLISH.
Suback
SUBACK packet acknowledging a SUBSCRIBE.
Subscribe
SUBSCRIBE packet requesting topic filter subscriptions.
Subscription
A subscription entry with a topic filter and its options.
SubscriptionIter
Iterator over subscription entries in a SUBSCRIBE payload.
SubscriptionOptions
Subscription options byte in a SUBSCRIBE payload entry.
Subscriptions
Borrowed view over a validated SUBSCRIBE payload.
SubscriptionsBufalloc
Owned SUBSCRIBE payload bytes, the owned counterpart to Subscriptions.
TopicFilterIter
Iterator over topic filter strings in an UNSUBSCRIBE payload.
TopicFilters
Borrowed view over a validated UNSUBSCRIBE payload.
TopicFiltersBufalloc
Owned UNSUBSCRIBE payload bytes, the owned counterpart to TopicFilters.
Unsuback
UNSUBACK packet acknowledging an UNSUBSCRIBE.
Unsubscribe
UNSUBSCRIBE packet requesting removal of topic filter subscriptions.
Will
Will message included in a CONNECT packet.

Enumsยง

Destination
Where a PUBLISH goes, named by topic, by alias or by both (ยง3.3.2.3.4).
Packet
A decoded MQTT v5 packet. All borrowed data refers to the input buffer.
ReasonCode
All MQTT v5 reason codes.
RetainHandling
Retain handling option for SUBSCRIBE.

Traitsยง

Body
The variable header and payload of a control packet, with its fixed header byte.