Enum esp_idf_svc::mqtt::client::EventPayload
source · pub enum EventPayload<'a, E> {
BeforeConnect,
Connected(bool),
Disconnected,
Subscribed(u32),
Unsubscribed(u32),
Published(u32),
Received {
id: u32,
topic: Option<&'a str>,
data: &'a [u8],
details: Details,
},
Deleted(u32),
Error(&'a E),
}
Variants§
BeforeConnect
Connected(bool)
Disconnected
Subscribed(u32)
Unsubscribed(u32)
Published(u32)
Received
Deleted(u32)
Error(&'a E)
Trait Implementations§
source§impl<'a, E> Clone for EventPayload<'a, E>where
E: Clone,
impl<'a, E> Clone for EventPayload<'a, E>where
E: Clone,
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 for EventPayload<'a, E>where
E: Debug,
impl<'a, E> Debug for EventPayload<'a, E>where
E: Debug,
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 for EventPayload<'a, E>where
E: PartialEq,
impl<'a, E> PartialEq for EventPayload<'a, E>where
E: PartialEq,
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 for EventPayload<'a, E>where
E: Eq,
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
)