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.