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§
Sourcefn snapshot_all(&self, filepath: &Path) -> StdResult<OngoingSnapshot>
fn snapshot_all(&self, filepath: &Path) -> StdResult<OngoingSnapshot>
Create a new snapshot with the given filepath.
Sourcefn snapshot_subset(
&self,
filepath: &Path,
files: Vec<PathBuf>,
) -> StdResult<OngoingSnapshot>
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.