Struct ringtail::buffers::atomic::Reader [−][src]
pub struct Reader<T> { /* fields omitted */ }
Reading half of an atomic buffer.
Trait Implementations
impl<T> Buffer<T> for Reader<T>
[src]
impl<T> Buffer<T> for Reader<T>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
Returns the number of elements in the buffer.
fn capacity(&self) -> usize
[src]
fn capacity(&self) -> usize
Returns the current capacity of the buffer.
fn clear(&mut self)
[src]
fn clear(&mut self)
Clears all elements from the buffer and resets the length to zero.
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
Returns true
if the buffer is empty.
impl<T: Copy> ReadableBuffer<T> for Reader<T>
[src]
impl<T: Copy> ReadableBuffer<T> for Reader<T>
fn copy_to(&self, dest: &mut [T]) -> usize
[src]
fn copy_to(&self, dest: &mut [T]) -> usize
Copy elements from the front of the buffer into the given slice. Read more
fn consume(&mut self, count: usize) -> usize
[src]
fn consume(&mut self, count: usize) -> usize
Consume up to count
elements from the front of the buffer and discards them. Read more
fn pull(&mut self, dest: &mut [T]) -> usize where
T: Copy,
[src]
fn pull(&mut self, dest: &mut [T]) -> usize where
T: Copy,
Pull elements from the front of the buffer into the given location, up to the length of the destination buffer. Read more
impl<T: Copy> Send for Reader<T>
[src]
impl<T: Copy> Send for Reader<T>