pub struct MqttClient { /* fields omitted */ }
Handle to send requests and commands to the network eventloop
Starts a new mqtt connection in a thread and returns [mqttclient]
instance to send requests/commands to the event loop and a crossbeam
channel receiver to receive notifications sent by the event loop.
See select.rs
example
[mqttclient]: struct.MqttClient.html
pub fn publish<S, V, B>( &mut self, topic: S, qos: QoS, retained: B, payload: V ) -> Result<(), ClientError> where S: Into<String>, V: Into<Vec<u8>>, B: Into<bool>, | [src] |
Requests the eventloop for mqtt publish
Requests the eventloop for mqtt subscribe
Requests the eventloop for mqtt unsubscribe
Commands the network eventloop to disconnect from the broker.
ReconnectOptions are not in affect here. Resume the
network for reconnection
Commands the network eventloop to reconnect to the broker and
resume network io
Requests the event loop for disconnection
Performs copy-assignment from source
. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static