pub struct RawMqttClient<'a, T, const MAX_PROPERTIES: usize, R: RngCore>where
    T: Read + Write,
{ /* private fields */ }

Implementations§

Method allows client connect to server. Client is connecting to the specified broker in the ClientConfig. Method selects proper implementation of the MQTT version based on the config. If the connection to the broker fails, method returns Err variable that contains Reason codes returned from the broker.

Method allows client disconnect from the server. Client disconnects from the specified broker in the ClientConfig. Method selects proper implementation of the MQTT version based on the config. If the disconnect from the broker fails, method returns Err variable that contains Reason codes returned from the broker.

Method allows sending message to broker specified from the ClientConfig. Client sends the message from the parameter message to the topic topic_name on the broker specified in the ClientConfig. If the send fails method returns Err with reason code received by broker.

Method allows client subscribe to multiple topics specified in the parameter topic_names on the broker specified in the ClientConfig. Generics TOPICS sets the value of the topics_names vector. MQTT protocol implementation is selected automatically.

Method allows client unsubscribe from the topic specified in the parameter topic_name on the broker from the ClientConfig. MQTT protocol implementation is selected automatically.

Method allows client send PING message to the broker specified in the ClientConfig. If there is expectation for long running connection. Method should be executed regularly by the timer that counts down the session expiry interval.

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.