pub trait IncrementalSave<T>: Send + Sync {
// Required methods
fn save_ops(&self, ops: &[Op]) -> Result<()>;
fn sync(&self) -> Result<()>;
fn should_snapshot(&self) -> bool;
fn snapshot(&self, state: &T) -> Result<()>;
}Expand description
Trait for incremental (WAL-based) saves from the Store.
Required Methods§
Sourcefn should_snapshot(&self) -> bool
fn should_snapshot(&self) -> bool
Check if WAL has exceeded the snapshot threshold.