SnapshotPolicy

Trait SnapshotPolicy 

Source
pub trait SnapshotPolicy: Send + Sync {
    // Required methods
    fn should_trigger(&self, ctx: &SnapshotContext) -> bool;
    fn mark_snapshot_created(&mut self);
}

Required Methods§

Source

fn should_trigger(&self, ctx: &SnapshotContext) -> bool

Source

fn mark_snapshot_created(&mut self)

Should be called after the snapshot is created successfully

Implementors§