[][src]Module paho_mqtt::token

Tokens to monitor asynchronous operations The Token module for the Paho MQTT Rust client library.

Asynchronous operations return a Token that is a type of future. It can be used to determine if an operation has completed, block and wait for the operation to complete, and obtain the final result. For example, you can start a connection, do something else, and then wait for the connection to complete.

The Token object implements the Future trait, and thus can be used and combined with any other Rust futures.

Structs

DeliveryToken

A DeliveryToken is a mechanism for tracking the progress of an asynchronous message publish operation.

Token

A Token is a mechanism for tracking the progress of an asynchronous operation.

Type Definitions

ConnectToken
FailureCallback

Callback for the token on failed completion

SubscribeManyToken
SubscribeToken
SuccessCallback

Callback for the token on successful completion

UnsubscribeManyToken
UnsubscribeToken