mithril_aggregator::services

Trait Snapshotter

Source
pub trait Snapshotter: Sync + Send {
    // Required methods
    fn snapshot_all(&self, filepath: &Path) -> StdResult<OngoingSnapshot>;
    fn snapshot_subset(
        &self,
        filepath: &Path,
        files: Vec<PathBuf>,
    ) -> StdResult<OngoingSnapshot>;
}
Expand description

Define the ability to create snapshots.

Required Methods§

Source

fn snapshot_all(&self, filepath: &Path) -> StdResult<OngoingSnapshot>

Create a new snapshot with the given filepath.

Source

fn snapshot_subset( &self, filepath: &Path, files: Vec<PathBuf>, ) -> StdResult<OngoingSnapshot>

Create a new snapshot with the given filepath from a subset of directories and files.

Implementors§