Skip to main content

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.

Re-exportsยง

pub use self::capabilities::ServerCapabilities;
pub use self::capabilities::Unsupported;
pub use self::error::ClientError;
pub use self::error::StoreError;
pub use self::inbound::HandleError;
pub use self::inbound::InboundAliasTable;
pub use self::transmit::AliasDecision;
pub use self::transmit::DrainError;
pub use self::transmit::OutboundAliasTable;
pub use self::transmit::TransmitError;
pub use self::transmit::TransmitEvent;

Modulesยง

capabilities ๐Ÿ”’
error ๐Ÿ”’
inbound ๐Ÿ”’
transmit ๐Ÿ”’
Encodes pending session state onto the wire for outbound transmission.

Structsยง

Client
State machine for a sans-io MQTT v5 client.
HandleOutcome
Result of processing an incoming packet.
OutgoingPublish
A QoS > 0 publish handed to the drain_outbox callback to be put on the wire.

Enumsยง

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.