pub struct CachePaddedMPMCConsumer<T: Send, const CAPACITY: usize> { /* private fields */ }Expand description
The consumer of the MPMCBoundedQueue.
Implementations§
Source§impl<T: Send, const CAPACITY: usize> CachePaddedMPMCConsumer<T, CAPACITY>
impl<T: Send, const CAPACITY: usize> CachePaddedMPMCConsumer<T, CAPACITY>
Sourcepub fn queue(&self) -> &MPMCBoundedQueue<T, CAPACITY, CachePaddedLongAtomic>
pub fn queue(&self) -> &MPMCBoundedQueue<T, CAPACITY, CachePaddedLongAtomic>
Returns a reference to the inner MPMCBoundedQueue.
Trait Implementations§
Source§impl<T: Send, const CAPACITY: usize> Consumer<T> for CachePaddedMPMCConsumer<T, CAPACITY>
impl<T: Send, const CAPACITY: usize> Consumer<T> for CachePaddedMPMCConsumer<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 CachePaddedMPMCConsumer<T, CAPACITY>
impl<T: Send, const CAPACITY: usize> LockFreeConsumer<T> for CachePaddedMPMCConsumer<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 moreSource§impl<T: Send, const CAPACITY: usize> MultiLockFreeProducerSpawner<T> for CachePaddedMPMCConsumer<T, CAPACITY>
impl<T: Send, const CAPACITY: usize> MultiLockFreeProducerSpawner<T> for CachePaddedMPMCConsumer<T, CAPACITY>
Source§type SpawnedLockFreeProducer = CachePaddedMPMCProducer<T, CAPACITY>
type SpawnedLockFreeProducer = CachePaddedMPMCProducer<T, CAPACITY>
An associated
MultiLockFreeProducer type.Source§fn spawn_multi_lock_free_producer(&self) -> Self::SpawnedLockFreeProducer
fn spawn_multi_lock_free_producer(&self) -> Self::SpawnedLockFreeProducer
Spawns a
MultiLockFreeProducer.Source§impl<T: Send, const CAPACITY: usize> MultiProducerSpawner<T> for CachePaddedMPMCConsumer<T, CAPACITY>
impl<T: Send, const CAPACITY: usize> MultiProducerSpawner<T> for CachePaddedMPMCConsumer<T, CAPACITY>
Source§type SpawnedProducer = CachePaddedMPMCProducer<T, CAPACITY>
type SpawnedProducer = CachePaddedMPMCProducer<T, CAPACITY>
An associated
MultiProducer type.Source§fn spawn_multi_producer(&self) -> Self::SpawnedProducer
fn spawn_multi_producer(&self) -> Self::SpawnedProducer
Spawns a
MultiProducer.impl<T: Send, const CAPACITY: usize> MultiConsumer<T> for CachePaddedMPMCConsumer<T, CAPACITY>
impl<T: Send, const CAPACITY: usize> MultiLockFreeConsumer<T> for CachePaddedMPMCConsumer<T, CAPACITY>
impl<T: Send, const CAPACITY: usize> Send for CachePaddedMPMCConsumer<T, CAPACITY>
Auto Trait Implementations§
impl<T, const CAPACITY: usize> Freeze for CachePaddedMPMCConsumer<T, CAPACITY>
impl<T, const CAPACITY: usize> !RefUnwindSafe for CachePaddedMPMCConsumer<T, CAPACITY>
impl<T, const CAPACITY: usize> !Sync for CachePaddedMPMCConsumer<T, CAPACITY>
impl<T, const CAPACITY: usize> Unpin for CachePaddedMPMCConsumer<T, CAPACITY>
impl<T, const CAPACITY: usize> !UnwindSafe for CachePaddedMPMCConsumer<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