pub trait SnapshotPolicy: Send + Sync {
// Required methods
fn should_trigger(&self, ctx: &SnapshotContext) -> bool;
fn mark_snapshot_created(&mut self);
}Required Methods§
fn should_trigger(&self, ctx: &SnapshotContext) -> bool
Sourcefn mark_snapshot_created(&mut self)
fn mark_snapshot_created(&mut self)
Should be called after the snapshot is created successfully
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".