PrunableStore

Trait PrunableStore 

Source
pub trait PrunableStore: LogStore {
    // Required method
    fn prune(
        &mut self,
        loc: Location,
    ) -> impl Future<Output = Result<(), Error>> + Send;
}
Expand description

A trait for stores that can be pruned.

Required Methods§

Source

fn prune( &mut self, loc: Location, ) -> impl Future<Output = Result<(), Error>> + Send

Prune historical operations prior to loc.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<E, K, V, T, S> PrunableStore for commonware_storage::qmdb::store::db::Db<E, K, V, T, S>
where E: Storage + Clock + Metrics, K: Array, V: VariableValue, T: Translator, S: State,

Source§

impl<E: RStorage + Clock + Metrics, K: Array, V: FixedValue, H: Hasher, T: Translator, const N: usize, D: DurabilityState> PrunableStore for commonware_storage::qmdb::current::ordered::fixed::Db<E, K, V, H, T, N, Merkleized<H>, D>

Source§

impl<E: RStorage + Clock + Metrics, K: Array, V: FixedValue, H: Hasher, T: Translator, const N: usize, D: DurabilityState> PrunableStore for commonware_storage::qmdb::current::unordered::fixed::Db<E, K, V, H, T, N, Merkleized<H>, D>

Source§

impl<E: RStorage + Clock + Metrics, K: Array, V: VariableValue, H: CHasher, T: Translator, D: DurabilityState> PrunableStore for Immutable<E, K, V, H, T, Merkleized<H>, D>

Source§

impl<E: Storage + Clock + Metrics, V: VariableValue, H: Hasher, D: DurabilityState> PrunableStore for Keyless<E, V, H, Merkleized<H>, D>