Skip to main content

Module options

Module options 

Available on crate feature tokio only.
Expand description

Client options with MQTT v5 connect properties and reconnect configuration.

Structs§

BackoffMultiplier
Exponential backoff multiplier, constrained to be finite and >= 1.0.
ClientOptions
Options for the MQTT v5 client.
Jitter
Backoff jitter as a fraction of the delay, constrained to 0.0..=1.0.
ReconnectOptions
Configuration for automatic reconnection with exponential backoff.
WillOptions
Configuration for the MQTT will message (Last Will and Testament).

Enums§

CleanStart
Whether to start a new session when the client starts (§3.1.2.4).

Constants§

DEFAULT_ACK_TIMEOUT
Default ack_timeout: 60 seconds.
DEFAULT_CONNECT_TIMEOUT
Default connect_timeout: 30 seconds.
DEFAULT_MAX_PACKET_SIZE
Default maximum_packet_size: 16 MiB.