pub trait RingFrameSource {
// Required methods
fn kind(&self) -> u8;
fn head(&self) -> u64;
fn capacity(&self) -> usize;
fn read_at(&self, counter: u64) -> Option<Frame>;
}Expand description
Read-only source that can be walked by super::RingCursor.
Implementors expose only the ring facts needed by the generic walker: the ring kind, current head, fixed capacity, and counter-addressed frame reads.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl RingFrameSource for ShmRing
Available on Unix only.