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