Module subscribe_options

Source
Expand description

Options for subscribing to topics MQTT v5 subscribe options for the Paho MQTT Rust client library. These are defined in section 3.8.3.1 of the MQTT v5 spec. The defaults use the behavior that was present in MQTT v3.1.1.

Structs§

SubscribeOptions
The MQTT v5 subscribe options.
SubscribeOptionsBuilder
Builder for creating subscription options.

Enums§

RetainHandling
The options for subscription retain handling.

Constants§

NO_RETAIN_AS_PUBLISHED
Retain flag is only set on publications sent by a broker if in response to a subscribe request. This is the default and the same behavior as MQTT v3.x
RETAIN_AS_PUBLISHED
Keep the retain flag as on the original publish message
SUBSCRIBE_LOCAL
Receive our own publications when subscribed to the same topics. This is the default and the same behavior as MQTT v3.x
SUBSCRIBE_NO_LOCAL
Don’t receive our own publications when subscribed to the same topics.