Enum embassy_sync::pubsub::WaitResult
source · pub enum WaitResult<T> {
Lagged(u64),
Message(T),
}
Expand description
The result of the subscriber wait procedure
Variants§
Lagged(u64)
The subscriber did not receive all messages and lagged by the given amount of messages. (This is the amount of messages that were missed)
Message(T)
A message was received
Trait Implementations§
source§impl<T: Clone> Clone for WaitResult<T>
impl<T: Clone> Clone for WaitResult<T>
source§fn clone(&self) -> WaitResult<T>
fn clone(&self) -> WaitResult<T>
Returns a copy 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<T: Debug> Debug for WaitResult<T>
impl<T: Debug> Debug for WaitResult<T>
source§impl<T: PartialEq> PartialEq for WaitResult<T>
impl<T: PartialEq> PartialEq for WaitResult<T>
source§fn eq(&self, other: &WaitResult<T>) -> bool
fn eq(&self, other: &WaitResult<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq> Eq for WaitResult<T>
impl<T> StructuralEq for WaitResult<T>
impl<T> StructuralPartialEq for WaitResult<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for WaitResult<T>where
T: RefUnwindSafe,
impl<T> Send for WaitResult<T>where
T: Send,
impl<T> Sync for WaitResult<T>where
T: Sync,
impl<T> Unpin for WaitResult<T>where
T: Unpin,
impl<T> UnwindSafe for WaitResult<T>where
T: UnwindSafe,
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