Skip to main content

snapshot_storage

Function snapshot_storage 

Source
pub fn snapshot_storage<B, T, C>(
    backend: Arc<B>,
    opts: SnapshotStorageOptions<T, C>,
) -> SnapshotStorage<B, T, C>
where B: StorageBackend + ?Sized, T: Send + Sync + 'static, C: Codec<T>,
Expand description

Factory: wrap a backend as a snapshot tier.

§Panics

Panics if opts.compact_every == Some(0) (use None to disable compaction; values ≥ 1 specify the cadence). Pre-1.0 footgun guard per /qa A4.