LogStorePrunable

Trait LogStorePrunable 

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

A trait for log stores that support pruning.

Required Methods§

Source

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

Prune historical operations prior to prune_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<A> LogStorePrunable for AnyExt<A>
where A: CleanAny,

Source§

impl<E, K, V, T> LogStorePrunable for Store<E, K, V, T>
where E: Storage + Clock + Metrics, K: Array, V: VariableValue, T: Translator,

Source§

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

Source§

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