pub struct AsyncClient { /* private fields */ }

Implementations

Create new MQTT AsyncClient. Input: ConnectionSettings. Output: tuple

  • first element: AsyncClient,
  • second element: tuple
    • eventloop
    • incoming_event_broadcaster. This (eventloop, incoming_event_broadcaster) tuple should be used as an argument to the eventloop_monitor.

Publish to topic (no retaining of messages).

Subscribe to a topic.

Unsubscribe from a topic.

Get a broadcast channel receiver of the incoming messages. Intended to read the incoming messages from IoT Core.

Get the Rumqttc AsyncClient.

Get an eventloop handle.

Stops the eventloop.

Sends MQTT disconnect to the eventloop.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.