Skip to main content

file_snapshot_default

Function file_snapshot_default 

Source
pub fn file_snapshot_default<T>(
    dir: impl AsRef<Path>,
) -> SnapshotStorage<FileBackend, T, JsonCodec>
where T: Serialize + DeserializeOwned + Send + Sync + 'static,
Expand description

Convenience: snapshot tier over a fresh file backend with SnapshotStorageOptions::default + a JsonCodec.