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§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> StructuralPartialEq for WaitResult<T>
Auto Trait Implementations§
impl<T> Freeze for WaitResult<T>where
T: Freeze,
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§
§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
)