Module client

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.
HandleOutcome
Result of processing an incoming packet.
OutgoingPublish
A QoS > 0 publish handed to the drain_outbox callback to be put on the wire.
ServerCapabilities
Server capabilities extracted from CONNACK properties (§3.2.2.3).

Enums§

AliasDecision
What to do with the topic alias for an outgoing PUBLISH (§3.3.2.3.4).
ClientError
Errors from the client state machine.
ClientEvent
Events produced by the client state machine for the application layer.
ConnectionState
Connection lifecycle phase.
Response
A response packet that the caller must encode and send to the server.
TransmitEvent
An outcome of Client::poll_transmit the caller must act on, reported per packet identifier so the driver can resolve the user-facing future.

Traits§

TopicAliasTable
Per-connection outbound topic-alias assignment.

Functions§

transmit_qos0
Encodes a QoS 0 (fire-and-forget) PUBLISH into out.