Trait rb::RB [] [src]

pub trait RB<T: Clone + Default> {
    fn clear(&self);
    fn producer(&self) -> Producer<T>;
    fn consumer(&self) -> Consumer<T>;
}

Managment interface for the ring buffer.

Required Methods

fn clear(&self)

Resets the whole buffer to the default value of type T. The buffer is empty after this call.

fn producer(&self) -> Producer<T>

Creates a producer view inside the buffer.

fn consumer(&self) -> Consumer<T>

Creates a consumer view inside the buffer.

Implementors