pub enum MqttEvent {
Incoming {
topic: String,
payload: Vec<u8>,
},
Connected,
Disconnected,
}Expand description
Typed events surfaced by the MQTT event loop.
Variants§
Incoming
A message arrived on a subscribed topic.
Connected
The client successfully connected (or reconnected) to the broker.
Disconnected
The client was cleanly disconnected.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MqttEvent
impl RefUnwindSafe for MqttEvent
impl Send for MqttEvent
impl Sync for MqttEvent
impl Unpin for MqttEvent
impl UnwindSafe for MqttEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more