pub enum PopResult<EntryType> {
Items(Vec<EntryType>),
Sleep(Duration),
Empty,
}
Variants§
Items(Vec<EntryType>)
These items are ready for immediate action
Sleep(Duration)
No items will be ready for the specified duration
Empty
The queue is empty
Auto Trait Implementations§
impl<EntryType> Freeze for PopResult<EntryType>
impl<EntryType> RefUnwindSafe for PopResult<EntryType>where
EntryType: RefUnwindSafe,
impl<EntryType> Send for PopResult<EntryType>where
EntryType: Send,
impl<EntryType> Sync for PopResult<EntryType>where
EntryType: Sync,
impl<EntryType> Unpin for PopResult<EntryType>where
EntryType: Unpin,
impl<EntryType> UnwindSafe for PopResult<EntryType>where
EntryType: 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