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>
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§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)