Struct mqttrust_core::Client[][src]

pub struct Client<'a, 'b, const T: usize, const P: usize, const L: usize> { /* fields omitted */ }
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

Performs the conversion.

Performs the conversion.

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.