pub trait LogBackend<T: Clone>: Send + Sync {
// Required methods
fn size(&self) -> usize;
fn at(&self, index: i64) -> Option<T>;
fn append(&mut self, value: T);
fn append_many(&mut self, values: Vec<T>);
fn clear(&mut self) -> usize;
fn trim_head(&mut self, n: usize) -> usize;
fn to_vec(&self) -> Vec<T>;
}Expand description
Storage backend for crate::ReactiveLog.
Required Methods§
fn size(&self) -> usize
fn at(&self, index: i64) -> Option<T>
fn append(&mut self, value: T)
fn append_many(&mut self, values: Vec<T>)
fn clear(&mut self) -> usize
fn trim_head(&mut self, n: usize) -> usize
fn to_vec(&self) -> Vec<T>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".