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