referrerpolicy=no-referrer-when-downgrade

Trait sp_state_machine::Storage

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

Patricia trie-based storage trait.

Required Methods§

source

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

Get a trie node.

Implementors§