pub struct Mpmc<T, const N: usize, const MP: usize, const MC: usize> { /* private fields */ }Implementations§
Methods from Deref<Target = Ring<T, N, MP, MC>>§
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn try_push(&self, val: T) -> Result<(), Error<T>>
pub fn try_push(&self, val: T) -> Result<(), Error<T>>
Appends an element to the back of the Ring.
Returns Err if the Ring is full or in critical section.
Trait Implementations§
Auto Trait Implementations§
impl<T, const N: usize, const MP: usize, const MC: usize> !Freeze for Mpmc<T, N, MP, MC>
impl<T, const N: usize, const MP: usize, const MC: usize> !RefUnwindSafe for Mpmc<T, N, MP, MC>
impl<T, const N: usize, const MP: usize, const MC: usize> Send for Mpmc<T, N, MP, MC>where
T: Send,
impl<T, const N: usize, const MP: usize, const MC: usize> Sync for Mpmc<T, N, MP, MC>where
T: Sync,
impl<T, const N: usize, const MP: usize, const MC: usize> Unpin for Mpmc<T, N, MP, MC>where
T: Unpin,
impl<T, const N: usize, const MP: usize, const MC: usize> UnsafeUnpin for Mpmc<T, N, MP, MC>where
T: UnsafeUnpin,
impl<T, const N: usize, const MP: usize, const MC: usize> UnwindSafe for Mpmc<T, N, MP, MC>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