pub struct SPSCUnboundedConsumer<T: Send, SC = NaiveRWLock<LightArc<Version<T>>>>{ /* private fields */ }Expand description
The consumer of the [SPSCUnboundedQueue].
Trait Implementations§
Source§impl<T: Send, SC> Clone for SPSCUnboundedConsumer<T, SC>
impl<T: Send, SC> Clone for SPSCUnboundedConsumer<T, SC>
Source§impl<T: Send, SC> Consumer<T> for SPSCUnboundedConsumer<T, SC>
impl<T: Send, SC> Consumer<T> for SPSCUnboundedConsumer<T, SC>
Source§fn pop_many(&self, dst: &mut [MaybeUninit<T>]) -> usize
fn pop_many(&self, dst: &mut [MaybeUninit<T>]) -> usize
Pops many values from the queue and returns the number of read values. Read more
Source§fn steal_into(&self, dst: &impl SingleProducer<T>) -> usize
fn steal_into(&self, dst: &impl SingleProducer<T>) -> usize
Steals some values from the consumer and places them into
dst.
Returns the number of stolen values. Read moreSource§impl<T: Send, SC> LockFreeConsumer<T> for SPSCUnboundedConsumer<T, SC>
impl<T: Send, SC> LockFreeConsumer<T> for SPSCUnboundedConsumer<T, SC>
Source§fn lock_free_pop_many(&self, dst: &mut [MaybeUninit<T>]) -> (usize, bool)
fn lock_free_pop_many(&self, dst: &mut [MaybeUninit<T>]) -> (usize, bool)
Pops many values from the queue.
Returns the number of popped values and whether the operation failed
because it should wait. Read more
Source§fn lock_free_steal_into(
&self,
dst: &impl SingleLockFreeProducer<T>,
) -> (usize, bool)
fn lock_free_steal_into( &self, dst: &impl SingleLockFreeProducer<T>, ) -> (usize, bool)
Steals some values from the consumer and places them into
dst.
Returns the number of stolen values and whether the operation failed
because it should wait. Read moreSource§fn lock_free_pop(&self) -> Result<T, LockFreePopErr>
fn lock_free_pop(&self) -> Result<T, LockFreePopErr>
Pops a value from the queue. On failure, returns
Err(LockFreePopErr). Read moreimpl<T: Send, SC> Send for SPSCUnboundedConsumer<T, SC>
impl<T: Send, SC> SingleConsumer<T> for SPSCUnboundedConsumer<T, SC>
impl<T: Send, SC> SingleLockFreeConsumer<T> for SPSCUnboundedConsumer<T, SC>
Auto Trait Implementations§
impl<T, SC = NaiveRWLock<LightArc<Version<T>>>> !Freeze for SPSCUnboundedConsumer<T, SC>
impl<T, SC = NaiveRWLock<LightArc<Version<T>>>> !RefUnwindSafe for SPSCUnboundedConsumer<T, SC>
impl<T, SC = NaiveRWLock<LightArc<Version<T>>>> !Sync for SPSCUnboundedConsumer<T, SC>
impl<T, SC> Unpin for SPSCUnboundedConsumer<T, SC>
impl<T, SC = NaiveRWLock<LightArc<Version<T>>>> !UnwindSafe for SPSCUnboundedConsumer<T, SC>
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