Struct mqttrust_core::Client
source · [−]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