Module connection

Module connection 

Expand description

Low-level single-connection driver.

This module manages a single MQTT connection: transport setup, CONNECT / CONNACK handshake, the packet read/write loop, keep-alive, and pending-ack tracking. It is an internal implementation detail of the crate; the public API is provided by MqttClient.

Re-exportsยง

pub use self::commands::Command;
pub use self::event_loop::run;

Modulesยง

commands ๐Ÿ”’
Commands sent from the client handle to the event loop, and pending-ack tracking state.
event_loop ๐Ÿ”’
Single-connection event loop.
io ๐Ÿ”’
Low-level I/O helpers for reading and writing MQTT packets.