Trait sp_state_machine::TrieBackendStorage [−][src]
pub trait TrieBackendStorage<H: Hasher>: Send + Sync { type Overlay: HashDB<H, DBValue> + Default + Consolidate; 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
Loading content...Required methods
fn get(
&self,
key: &H::Out,
prefix: Prefix<'_>
) -> Result<Option<DBValue>, DefaultError>
[src]
&self,
key: &H::Out,
prefix: Prefix<'_>
) -> Result<Option<DBValue>, DefaultError>
Get the value stored at key.
Implementations on Foreign Types
impl<H: Hasher> TrieBackendStorage<H> for Arc<dyn Storage<H>>
[src]
impl<H: Hasher> TrieBackendStorage<H> for Arc<dyn Storage<H>>
[src]type Overlay = PrefixedMemoryDB<H>
fn get(
&self,
key: &H::Out,
prefix: Prefix<'_>
) -> Result<Option<DBValue>, DefaultError>
[src]
&self,
key: &H::Out,
prefix: Prefix<'_>
) -> Result<Option<DBValue>, DefaultError>
impl<H: Hasher> TrieBackendStorage<H> for PrefixedMemoryDB<H>
[src]
impl<H: Hasher> TrieBackendStorage<H> for PrefixedMemoryDB<H>
[src]type Overlay = PrefixedMemoryDB<H>
fn get(
&self,
key: &H::Out,
prefix: Prefix<'_>
) -> Result<Option<DBValue>, DefaultError>
[src]
&self,
key: &H::Out,
prefix: Prefix<'_>
) -> Result<Option<DBValue>, DefaultError>
Implementors
Loading content...