pub struct ArrayMpsc<T>(/* private fields */);Expand description
Simplified ArrayQueue tweaks for MPSC
Push and pop fast path reduced one atomic ops compared to its MPMC version (only 3 ops instead of 4), and it’s faster to detect the empty / full condition (2 ops instead of 3).
Implementations§
Trait Implementations§
Source§impl<T> FlavorBounded for ArrayMpsc<T>
impl<T> FlavorBounded for ArrayMpsc<T>
fn new_with_bound(size: usize) -> Self
Auto Trait Implementations§
impl<T> !Freeze for ArrayMpsc<T>
impl<T> RefUnwindSafe for ArrayMpsc<T>
impl<T> Send for ArrayMpsc<T>
impl<T> Sync for ArrayMpsc<T>
impl<T> Unpin for ArrayMpsc<T>
impl<T> UnsafeUnpin for ArrayMpsc<T>
impl<T> UnwindSafe for ArrayMpsc<T>
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