[−][src]Trait sp_state_machine::ChangesTrieStorage
Changes trie storage. Provides access to trie roots and trie nodes.
Required methods
pub fn as_roots_storage(&self) -> &dyn RootsStorage<H, Number>
[src]
Casts from self reference to RootsStorage reference.
pub fn with_cached_changed_keys(
&self,
root: &H::Out,
functor: &mut dyn FnMut(&HashMap<Option<PrefixedStorageKey>, HashSet<StorageKey>>)
) -> bool
[src]
&self,
root: &H::Out,
functor: &mut dyn FnMut(&HashMap<Option<PrefixedStorageKey>, HashSet<StorageKey>>)
) -> bool
Execute given functor with cached entry for given trie root. Returns true if the functor has been called (cache entry exists) and false otherwise.
pub fn get(
&self,
key: &H::Out,
prefix: Prefix<'_>
) -> Result<Option<DBValue>, String>
[src]
&self,
key: &H::Out,
prefix: Prefix<'_>
) -> Result<Option<DBValue>, String>
Get a trie node.
Implementors
impl<H: Hasher, Number: BlockNumber> Storage<H, Number> for InMemoryStorage<H, Number>
[src]
pub fn as_roots_storage(&self) -> &dyn RootsStorage<H, Number>
[src]
pub fn with_cached_changed_keys(
&self,
root: &H::Out,
functor: &mut dyn FnMut(&HashMap<Option<PrefixedStorageKey>, HashSet<StorageKey>>)
) -> bool
[src]
&self,
root: &H::Out,
functor: &mut dyn FnMut(&HashMap<Option<PrefixedStorageKey>, HashSet<StorageKey>>)
) -> bool
pub fn get(
&self,
key: &H::Out,
prefix: Prefix<'_>
) -> Result<Option<DBValue>, String>
[src]
&self,
key: &H::Out,
prefix: Prefix<'_>
) -> Result<Option<DBValue>, String>