StoreDeletable

Trait StoreDeletable 

Source
pub trait StoreDeletable: StoreMut {
    // Required method
    fn delete(
        &mut self,
        key: Self::Key,
    ) -> impl Future<Output = Result<bool, Self::Error>>;
}
Expand description

A mutable key-value store that supports deleting values.

Required Methods§

Source

fn delete( &mut self, key: Self::Key, ) -> impl Future<Output = Result<bool, Self::Error>>

Delete the value of a key.

Returns true if the key existed and was deleted, false if it did not exist.

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> StoreDeletable for AnyExt<A>
where A: CleanAny,

Source§

impl<E, K, V, T> StoreDeletable 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> StoreDeletable for commonware_storage::qmdb::current::ordered::fixed::Db<E, K, V, H, T, N, Dirty>

Source§

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