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§impl<T: Debug> Debug for WaitResult<T>
impl<T: Debug> Debug for WaitResult<T>
impl<T: Eq> Eq for WaitResult<T>
Source§impl<T: PartialEq> PartialEq for WaitResult<T>
impl<T: PartialEq> PartialEq for WaitResult<T>
impl<T: PartialEq> StructuralPartialEq for WaitResult<T>
Auto Trait Implementations§
impl<T> Forget for WaitResult<T>
impl<T> Freeze for WaitResult<T>where
T: Freeze,
impl<T> Move for WaitResult<T>
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> UnsafeUnpin for WaitResult<T>where
T: UnsafeUnpin,
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