pub struct CachePaddedSPMCConsumer<T: Send, const CAPACITY: usize> { /* private fields */ }Expand description
The consumer of the SPMCBoundedQueue.
Trait Implementations§
Source§impl<T: Send, const CAPACITY: usize> Consumer<T> for CachePaddedSPMCConsumer<T, CAPACITY>
impl<T: Send, const CAPACITY: usize> Consumer<T> for CachePaddedSPMCConsumer<T, CAPACITY>
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, const CAPACITY: usize> LockFreeConsumer<T> for CachePaddedSPMCConsumer<T, CAPACITY>
impl<T: Send, const CAPACITY: usize> LockFreeConsumer<T> for CachePaddedSPMCConsumer<T, CAPACITY>
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, const CAPACITY: usize> MultiConsumer<T> for CachePaddedSPMCConsumer<T, CAPACITY>
impl<T: Send, const CAPACITY: usize> MultiLockFreeConsumer<T> for CachePaddedSPMCConsumer<T, CAPACITY>
impl<T: Send, const CAPACITY: usize> Send for CachePaddedSPMCConsumer<T, CAPACITY>
Auto Trait Implementations§
impl<T, const CAPACITY: usize> Freeze for CachePaddedSPMCConsumer<T, CAPACITY>
impl<T, const CAPACITY: usize> !RefUnwindSafe for CachePaddedSPMCConsumer<T, CAPACITY>
impl<T, const CAPACITY: usize> !Sync for CachePaddedSPMCConsumer<T, CAPACITY>
impl<T, const CAPACITY: usize> Unpin for CachePaddedSPMCConsumer<T, CAPACITY>
impl<T, const CAPACITY: usize> !UnwindSafe for CachePaddedSPMCConsumer<T, CAPACITY>
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