Struct async_ach_ring::Ring
source · [−]Implementations
sourceimpl<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> !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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more