[][src]Trait sp_state_machine::TrieBackendStorage

pub trait TrieBackendStorage<H: Hasher>: Send + Sync {
    type Overlay: HashDB<H, DBValue> + Default + Consolidate;
    pub fn get(
        &self,
        key: &H::Out,
        prefix: Prefix<'_>
    ) -> Result<Option<DBValue>, DefaultError>; }

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

Associated Types

type Overlay: HashDB<H, DBValue> + Default + Consolidate

Type of in-memory overlay.

Loading content...

Required methods

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

Get the value stored at key.

Loading content...

Implementations on Foreign Types

impl<H: Hasher> TrieBackendStorage<H> for Arc<dyn Storage<H>>[src]

type Overlay = PrefixedMemoryDB<H>

impl<H: Hasher> TrieBackendStorage<H> for PrefixedMemoryDB<H>[src]

type Overlay = PrefixedMemoryDB<H>

Loading content...

Implementors

impl<H: Hasher> TrieBackendStorage<H> for MemoryDB<H>[src]

type Overlay = MemoryDB<H>

Loading content...