pub struct Client<'a, 'b, const L: usize> { /* private fields */ }
Expand description

MQTT Client

This client is meerly a convenience wrapper around a heapless::spsc::Producer, making it easier to send certain MQTT packet types, and maintaining a common reference to a client id. Also it implements the Mqtt trait.

Lifetimes:

  • ’a: The lifetime of the queue exhanging packets between the client and the event loop. This must have the same lifetime as the corresponding Consumer. Usually ’static.
  • ’b: The lifetime of client id str

Generics:

  • L: The length of the queue, exhanging packets between the client and the event loop. Length in number of request packets

Implementations

Trait Implementations

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.

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.