Expand description
Common traits for event producers and consumers.
These traits abstract over the different ring buffer types so that generic code can work with any combination of producer and consumer.
| Trait | Role | Implementors |
|---|---|---|
Sink | Accept events | RingBuf, seq_ring::Producer, event_buf::Producer |
Source | Yield events | seq_ring::Consumer, event_buf::Consumer |
Link | Both — accept and yield | Blanket impl for any Sink<In> + Source<Out> |
The free function forward transfers items from any Source to any
Sink, stopping when the source is empty or the sink rejects a value.