pub enum StatePayload {
Online {
timestamp: u64,
},
Offline {
timestamp: u64,
},
}Expand description
An enum representing the different type message published on a STATE topic.
Variants§
Implementations§
Source§impl StatePayload
impl StatePayload
Sourcepub fn get_publish_quality_retain(&self) -> (QoS, bool)
pub fn get_publish_quality_retain(&self) -> (QoS, bool)
Get the QoS and retain settings that the State message should be published with
Trait Implementations§
Source§impl Clone for StatePayload
impl Clone for StatePayload
Source§fn clone(&self) -> StatePayload
fn clone(&self) -> StatePayload
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatePayload
impl Debug for StatePayload
Source§impl From<StatePayload> for Vec<u8>
impl From<StatePayload> for Vec<u8>
Source§fn from(value: StatePayload) -> Self
fn from(value: StatePayload) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StatePayload
impl PartialEq for StatePayload
impl StructuralPartialEq for StatePayload
Auto Trait Implementations§
impl Freeze for StatePayload
impl RefUnwindSafe for StatePayload
impl Send for StatePayload
impl Sync for StatePayload
impl Unpin for StatePayload
impl UnsafeUnpin for StatePayload
impl UnwindSafe for StatePayload
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