pub trait Split {
type Prod: Producer;
type Cons: Consumer;
// Required method
fn split(self) -> (Self::Prod, Self::Cons);
}
Expand description
Split the ring buffer onto producer and consumer.
pub trait Split {
type Prod: Producer;
type Cons: Consumer;
// Required method
fn split(self) -> (Self::Prod, Self::Cons);
}
Split the ring buffer onto producer and consumer.