pub struct AtomicRingReader<T: Send>(/* private fields */);Expand description
The read side of an atomic ring buffer.
Implementations§
Source§impl<T: Send> AtomicRingReader<T>
impl<T: Send> AtomicRingReader<T>
Sourcepub fn read_available(&self) -> usize
pub fn read_available(&self) -> usize
At least this many items can be read from the buffer.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for AtomicRingReader<T>
impl<T> RefUnwindSafe for AtomicRingReader<T>where
T: RefUnwindSafe,
impl<T> Send for AtomicRingReader<T>
impl<T> Sync for AtomicRingReader<T>
impl<T> Unpin for AtomicRingReader<T>
impl<T> UnwindSafe for AtomicRingReader<T>where
T: RefUnwindSafe,
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