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
sourceimpl<T: Clone> Clone for WaitResult<T>
impl<T: Clone> Clone for WaitResult<T>
sourcefn clone(&self) -> WaitResult<T>
fn clone(&self) -> WaitResult<T>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T: Debug> Debug for WaitResult<T>
impl<T: Debug> Debug for WaitResult<T>
sourceimpl<T: PartialEq> PartialEq<WaitResult<T>> for WaitResult<T>
impl<T: PartialEq> PartialEq<WaitResult<T>> for WaitResult<T>
sourcefn eq(&self, other: &WaitResult<T>) -> bool
fn eq(&self, other: &WaitResult<T>) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more