Skip to main content

append_log_storage

Function append_log_storage 

Source
pub fn append_log_storage<B, T, C>(
    backend: Arc<B>,
    opts: AppendLogStorageOptions<T, C>,
) -> AppendLogStorage<B, T, C>
where B: StorageBackend + ?Sized, T: Serialize + DeserializeOwned + Clone + Send + Sync + 'static, C: Codec<Vec<T>>,
Expand description

Factory: wrap a backend as an append-log tier.

ยงPanics

Panics if opts.compact_every == Some(0). See snapshot_storage for the rationale (pre-1.0 footgun guard per /qa A4).