pub struct MpMcQueue<T, const N: usize> { /* fields omitted */ }
Expand description
MPMC queue with a capacity for N elements
N must be a power of 2
The max value of N is u8::MAX - 1 if mpmc_large
feature is not enabled.
Returns the item in the front of the queue, or None
if the queue is empty
Adds an item
to the end of the queue
Returns back the item
if the queue is full
Returns the “default value” for a type. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.