Enum embedded_svc::mqtt::client::EventPayload
source · pub enum EventPayload<'a, E> {
BeforeConnect,
Connected(bool),
Disconnected,
Subscribed(MessageId),
Unsubscribed(MessageId),
Published(MessageId),
Received {
id: MessageId,
topic: Option<&'a str>,
data: &'a [u8],
details: Details,
},
Deleted(MessageId),
Error(&'a E),
}
Variants§
BeforeConnect
Connected(bool)
Disconnected
Subscribed(MessageId)
Unsubscribed(MessageId)
Published(MessageId)
Received
Deleted(MessageId)
Error(&'a E)
Trait Implementations§
source§impl<'a, E: Clone> Clone for EventPayload<'a, E>
impl<'a, E: Clone> Clone for EventPayload<'a, E>
source§fn clone(&self) -> EventPayload<'a, E>
fn clone(&self) -> EventPayload<'a, E>
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a, E: Debug> Debug for EventPayload<'a, E>
impl<'a, E: Debug> Debug for EventPayload<'a, E>
source§impl<'a, E> Display for EventPayload<'a, E>where
E: Debug,
impl<'a, E> Display for EventPayload<'a, E>where
E: Debug,
source§impl<'a, E: PartialEq> PartialEq for EventPayload<'a, E>
impl<'a, E: PartialEq> PartialEq for EventPayload<'a, E>
source§fn eq(&self, other: &EventPayload<'a, E>) -> bool
fn eq(&self, other: &EventPayload<'a, E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a, E: Eq> Eq for EventPayload<'a, E>
impl<'a, E> StructuralPartialEq for EventPayload<'a, E>
Auto Trait Implementations§
impl<'a, E> Freeze for EventPayload<'a, E>
impl<'a, E> RefUnwindSafe for EventPayload<'a, E>where
E: RefUnwindSafe,
impl<'a, E> Send for EventPayload<'a, E>where
E: Sync,
impl<'a, E> Sync for EventPayload<'a, E>where
E: Sync,
impl<'a, E> Unpin for EventPayload<'a, E>
impl<'a, E> UnwindSafe for EventPayload<'a, E>where
E: RefUnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)