pub enum MqttEvent<'p> {
Publish(Publish<'p>),
}
Expand description
Represents an event received from the MQTT broker.
The lifetime 'p
indicates that the event borrows data from the client’s
buffer and is only valid for the duration of the poll
call.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'p> Freeze for MqttEvent<'p>
impl<'p> RefUnwindSafe for MqttEvent<'p>
impl<'p> Send for MqttEvent<'p>
impl<'p> Sync for MqttEvent<'p>
impl<'p> Unpin for MqttEvent<'p>
impl<'p> UnwindSafe for MqttEvent<'p>
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