pub enum PopResult<T> {
Some(T),
Empty,
Inconsistent,
}Expand description
One-shot result of MpscQueue::try_pop.
Variants§
Some(T)
A value was dequeued.
Empty
Queue is truly empty.
Inconsistent
A producer is mid-publish; head was reached but next is not yet
linked. Callers should retry (spin or back off).
Auto Trait Implementations§
impl<T> Freeze for PopResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for PopResult<T>where
T: RefUnwindSafe,
impl<T> Send for PopResult<T>where
T: Send,
impl<T> Sync for PopResult<T>where
T: Sync,
impl<T> Unpin for PopResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for PopResult<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for PopResult<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