Module client
Expand description
Client state machine.
Client tracks connection lifecycle, server-negotiated limits, packet
ID allocation, and QoS 1/2 flows. It consumes decoded packets and
produces ClientEvents and Responses for the caller to send.
Modules§
- transmit 🔒
- The outbound transmit path: encoding pending session state onto the wire.
Structs§
- Client
- Sans-io MQTT v5 client state machine.
- Handle
Outcome - Result of processing an incoming packet.
- Outgoing
Publish - A
QoS> 0 publish handed to thedrain_outboxcallback to be put on the wire. - Server
Capabilities - Server capabilities extracted from CONNACK properties (§3.2.2.3).
Enums§
- Alias
Decision - What to do with the topic alias for an outgoing PUBLISH (§3.3.2.3.4).
- Client
Error - Errors from the client state machine.
- Client
Event - Events produced by the client state machine for the application layer.
- Connection
State - Connection lifecycle phase.
- Response
- A response packet that the caller must encode and send to the server.
- Transmit
Event - An outcome of
Client::poll_transmitthe caller must act on, reported per packet identifier so the driver can resolve the user-facing future.
Traits§
- Topic
Alias Table - Per-connection outbound topic-alias assignment.
Functions§
- transmit_
qos0 - Encodes a
QoS0 (fire-and-forget) PUBLISH intoout.