pub struct MpMcQueue<T, const N: usize> { /* private fields */ }
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.
Implementations§
Trait Implementations§
impl<T, const N: usize> Sync for MpMcQueue<T, N>where
T: Send,
Auto Trait Implementations§
impl<T, const N: usize> !Freeze for MpMcQueue<T, N>
impl<T, const N: usize> !RefUnwindSafe for MpMcQueue<T, N>
impl<T, const N: usize> Send for MpMcQueue<T, N>where
T: Send,
impl<T, const N: usize> Unpin for MpMcQueue<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for MpMcQueue<T, N>where
T: UnwindSafe,
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