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]

Stores the given slice of data into the ring buffer. Returns the number of written elements or an error. Read more

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