Struct rb::Producer
[−]
[src]
pub struct Producer<T> { /* fields omitted */ }
Producer view into the ring buffer.
Trait Implementations
impl<T: Clone + Copy> RbProducer<T> for Producer<T>
[src]
fn write(&self, data: &[T]) -> Result<usize>
[src]
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>
[src]
Works analog to write
but blocks until there are free slots in the ring buffer. The number of actual blocks written is returned in the Option
value. Read more