pub struct SpscQueueConsumer<V: Send + Sync> { /* private fields */ }
Implementations§
Source§impl<V: Send + Sync> SpscQueueConsumer<V>
impl<V: Send + Sync> SpscQueueConsumer<V>
pub fn is_empty(&self) -> bool
pub fn maybe_dequeue(&mut self) -> MaybeDequeued<V>
pub fn dequeue(&mut self) -> Option<V>
Trait Implementations§
impl<V: Send + Sync> Send for SpscQueueConsumer<V>
impl<V: Send + Sync> Sync for SpscQueueConsumer<V>
Auto Trait Implementations§
impl<V> Freeze for SpscQueueConsumer<V>
impl<V> RefUnwindSafe for SpscQueueConsumer<V>where
V: RefUnwindSafe,
impl<V> Unpin for SpscQueueConsumer<V>
impl<V> UnwindSafe for SpscQueueConsumer<V>where
V: 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