pub struct MutexRingBuffer<T, const N: usize>(/* private fields */);Expand description
A mutex protected RingBuffer
Implementations§
Trait Implementations§
Source§impl<T: Clone, const N: usize> Clone for MutexRingBuffer<T, N>
impl<T: Clone, const N: usize> Clone for MutexRingBuffer<T, N>
Source§fn clone(&self) -> MutexRingBuffer<T, N>
fn clone(&self) -> MutexRingBuffer<T, N>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T, const N: usize> Freeze for MutexRingBuffer<T, N>
impl<T, const N: usize> !RefUnwindSafe for MutexRingBuffer<T, N>
impl<T, const N: usize> Send for MutexRingBuffer<T, N>where
T: Send,
impl<T, const N: usize> Sync for MutexRingBuffer<T, N>where
T: Send,
impl<T, const N: usize> Unpin for MutexRingBuffer<T, N>
impl<T, const N: usize> !UnwindSafe for MutexRingBuffer<T, N>
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