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]

[src]

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

[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

Auto Trait Implementations

impl<T> Send for Producer<T> where
    T: Send

impl<T> Sync for Producer<T> where
    T: Send