pub struct Producer<T> { /* private fields */ }
Expand description
Producer view into the ring buffer.
Trait Implementations
sourceimpl<T: Clone + Copy> RbProducer<T> for Producer<T>
impl<T: Clone + Copy> RbProducer<T> for Producer<T>
sourcefn write(&self, data: &[T]) -> Result<usize>
fn write(&self, data: &[T]) -> Result<usize>
Stores the given slice of data into the ring buffer. Returns the number of written elements or an error. Read more
Auto Trait Implementations
impl<T> !RefUnwindSafe for Producer<T>
impl<T> Send for Producer<T> where
T: Send,
impl<T> Sync for Producer<T> where
T: Send,
impl<T> Unpin for Producer<T>
impl<T> !UnwindSafe for Producer<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more