Trait rb::RB

source · []
pub trait RB<T: Clone + Copy + Default> {
    fn clear(&self);
    fn producer(&self) -> Producer<T>;
    fn consumer(&self) -> Consumer<T>;
}
Expand description

Managment interface for the ring buffer.

Required Methods

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

Creates a producer view inside the buffer.

Creates a consumer view inside the buffer.

Implementors