Trait sp_state_machine::TrieBackendStorage

source ·
pub trait TrieBackendStorage<H: Hasher>: Send + Sync {
    // Required method
    fn get(
        &self,
        key: &H::Out,
        prefix: Prefix<'_>,
    ) -> Result<Option<DBValue>, DefaultError>;
}
Expand description

Key-value pairs storage that is used by trie backend essence.

Required Methods§

source

fn get( &self, key: &H::Out, prefix: Prefix<'_>, ) -> Result<Option<DBValue>, DefaultError>

Get the value stored at key.

Implementations on Foreign Types§

source§

impl<H, KF> TrieBackendStorage<H> for GenericMemoryDB<H, KF>
where H: Hasher, KF: KeyFunction<H> + Send + Sync,

source§

fn get( &self, key: &H::Out, prefix: Prefix<'_>, ) -> Result<Option<DBValue>, DefaultError>

source§

impl<H: Hasher> TrieBackendStorage<H> for Arc<dyn Storage<H>>

source§

fn get( &self, key: &H::Out, prefix: Prefix<'_>, ) -> Result<Option<DBValue>, DefaultError>

source§

impl<T: TrieBackendStorage<H>, H: Hasher> TrieBackendStorage<H> for &T

source§

fn get( &self, key: &H::Out, prefix: Prefix<'_>, ) -> Result<Option<DBValue>, DefaultError>

Implementors§