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.
- Handle
Outcome - Result of processing an incoming packet.
- Outgoing
Publish - A
QoS> 0 publish handed to thedrain_outboxcallback to be put on the wire.
Enumsยง
- 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.