Struct rb::Producer
[−]
[src]
pub struct Producer<T> { /* fields omitted */ }
Producer view into the ring buffer.
Trait Implementations
impl<T: Clone> RbProducer<T> for Producer<T>
[src]
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
fn write_blocking(&self, data: &[T]) -> Option<usize>
Works analog to write
but blocks until there are as much free slots in the ring buffer as there are elements in the given slice. Read more