Enum dfqueue::PeekResult
source · pub enum PeekResult<T> {
Data(PeekedData<T>),
Empty,
Inconsistent,
}
Expand description
A result of the peek
function.
Variants§
Data(PeekedData<T>)
Some data has been successfully peeked
Empty
The queue is empty
Inconsistent
The queue is in an inconsistent state. Peeking data should succeed, but some pushers have yet to make enough progress in order allow a peek to succeed. It is recommended that a peek() occur “in the near future” in order to see if the sender has made progress or not.
Auto Trait Implementations§
impl<T> RefUnwindSafe for PeekResult<T>where T: RefUnwindSafe,
impl<T> Send for PeekResult<T>where T: Send + Sync,
impl<T> Sync for PeekResult<T>where T: Send + Sync,
impl<T> Unpin for PeekResult<T>
impl<T> UnwindSafe for PeekResult<T>where T: RefUnwindSafe,
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