pub enum Event {
Offline,
Online,
Node(NodeMessage),
Device(DeviceMessage),
State {
host_id: String,
payload: StatePayload,
},
InvalidPublish {
reason: MessageError,
topic: Vec<u8>,
payload: Vec<u8>,
},
}Expand description
An enum that represents the different types of events an EventLoop implementation can produce.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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