[−][src]Trait sp_consensus::StateBackend
A state backend is used to read state data and can have changes committed to it.
The clone operation (if implemented) should be cheap.
Associated Types
type Error: Error
An error type when fetching data is not possible.
type Transaction: Consolidate + Default + Send
Storage changes to be applied if committing
type TrieBackendStorage: TrieBackendStorage<H>
Type of trie backend storage.
Required methods
fn storage(&self, key: &[u8]) -> Result<Option<Vec<u8>>, Self::Error>
Get keyed storage or None if there is nothing associated.
fn child_storage(
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, Self::Error>
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, Self::Error>
Get keyed child storage or None if there is nothing associated.
fn next_storage_key(&self, key: &[u8]) -> Result<Option<Vec<u8>>, Self::Error>
Return the next key in storage in lexicographic order or None
if there is no value.
fn next_child_storage_key(
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, Self::Error>
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, Self::Error>
Return the next key in child storage in lexicographic order or None
if there is no value.
fn for_keys_in_child_storage<F>(
&self,
storage_key: &[u8],
child_info: ChildInfo,
f: F
) where
F: FnMut(&[u8]),
&self,
storage_key: &[u8],
child_info: ChildInfo,
f: F
) where
F: FnMut(&[u8]),
Retrieve all entries keys of child storage and call f
for each of those keys.
fn for_key_values_with_prefix<F>(&self, prefix: &[u8], f: F) where
F: FnMut(&[u8], &[u8]),
F: FnMut(&[u8], &[u8]),
Retrieve all entries keys and values of which start with the given prefix and
call f
for each of those keys.
fn for_child_keys_with_prefix<F>(
&self,
storage_key: &[u8],
child_info: ChildInfo,
prefix: &[u8],
f: F
) where
F: FnMut(&[u8]),
&self,
storage_key: &[u8],
child_info: ChildInfo,
prefix: &[u8],
f: F
) where
F: FnMut(&[u8]),
Retrieve all child entries keys which start with the given prefix and
call f
for each of those keys.
fn storage_root<I>(&self, delta: I) -> (<H as Hasher>::Out, Self::Transaction) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
<H as Hasher>::Out: Ord,
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
<H as Hasher>::Out: Ord,
Calculate the storage root, with given delta over what is already stored in the backend, and produce a "transaction" that can be used to commit. Does not include child storage updates.
fn child_storage_root<I>(
&self,
storage_key: &[u8],
child_info: ChildInfo,
delta: I
) -> (<H as Hasher>::Out, bool, Self::Transaction) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
<H as Hasher>::Out: Ord,
&self,
storage_key: &[u8],
child_info: ChildInfo,
delta: I
) -> (<H as Hasher>::Out, bool, Self::Transaction) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
<H as Hasher>::Out: Ord,
Calculate the child storage root, with given delta over what is already stored in the backend, and produce a "transaction" that can be used to commit. The second argument is true if child storage root equals default storage root.
fn pairs(&self) -> Vec<(Vec<u8>, Vec<u8>)>
Get all key/value pairs into a Vec.
Provided methods
fn storage_hash(
&self,
key: &[u8]
) -> Result<Option<<H as Hasher>::Out>, Self::Error>
&self,
key: &[u8]
) -> Result<Option<<H as Hasher>::Out>, Self::Error>
Get keyed storage value hash or None if there is nothing associated.
fn child_storage_hash(
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<<H as Hasher>::Out>, Self::Error>
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<<H as Hasher>::Out>, Self::Error>
Get child keyed storage value hash or None if there is nothing associated.
fn exists_storage(&self, key: &[u8]) -> Result<bool, Self::Error>
true if a key exists in storage.
fn exists_child_storage(
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<bool, Self::Error>
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<bool, Self::Error>
true if a key exists in child storage.
fn for_keys_with_prefix<F>(&self, prefix: &[u8], f: F) where
F: FnMut(&[u8]),
F: FnMut(&[u8]),
Retrieve all entries keys which start with the given prefix and
call f
for each of those keys.
fn keys(&self, prefix: &[u8]) -> Vec<Vec<u8>>
Get all keys with given prefix
fn child_keys(
&self,
storage_key: &[u8],
child_info: ChildInfo,
prefix: &[u8]
) -> Vec<Vec<u8>>
&self,
storage_key: &[u8],
child_info: ChildInfo,
prefix: &[u8]
) -> Vec<Vec<u8>>
Get all keys of child storage with given prefix
fn as_trie_backend(
&mut self
) -> Option<&TrieBackend<Self::TrieBackendStorage, H>>
&mut self
) -> Option<&TrieBackend<Self::TrieBackendStorage, H>>
Try convert into trie backend.
fn full_storage_root<I1, I2i, I2>(
&self,
delta: I1,
child_deltas: I2
) -> (<H as Hasher>::Out, Self::Transaction) where
I1: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
I2: IntoIterator<Item = (Vec<u8>, I2i, OwnedChildInfo)>,
I2i: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
<H as Hasher>::Out: Ord,
<H as Hasher>::Out: Encode,
&self,
delta: I1,
child_deltas: I2
) -> (<H as Hasher>::Out, Self::Transaction) where
I1: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
I2: IntoIterator<Item = (Vec<u8>, I2i, OwnedChildInfo)>,
I2i: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
<H as Hasher>::Out: Ord,
<H as Hasher>::Out: Encode,
Calculate the storage root, with given delta over what is already stored in the backend, and produce a "transaction" that can be used to commit. Does include child storage updates.
fn usage_info(&self) -> UsageInfo
Query backend usage statistics (i/o, memory)
Not all implementations are expected to be able to do this. In the case when they don't, empty statistics is returned.
fn wipe(&self) -> Result<(), Self::Error>
Wipe the state database.
fn commit(
&self,
_storage_root: <H as Hasher>::Out,
_transaction: Self::Transaction
) -> Result<(), Self::Error>
&self,
_storage_root: <H as Hasher>::Out,
_transaction: Self::Transaction
) -> Result<(), Self::Error>
Commit given transaction to storage.
Implementations on Foreign Types
impl<H> Backend<H> for InMemory<H> where
H: Hasher,
<H as Hasher>::Out: Codec,
[src]
H: Hasher,
<H as Hasher>::Out: Codec,
type Error = Void
type Transaction = Vec<(Option<(Vec<u8>, OwnedChildInfo)>, Vec<(Vec<u8>, Option<Vec<u8>>)>)>
type TrieBackendStorage = MemoryDB<H, HashKey<H>, Vec<u8>>
fn storage(
&self,
key: &[u8]
) -> Result<Option<Vec<u8>>, <InMemory<H> as Backend<H>>::Error>
[src]
&self,
key: &[u8]
) -> Result<Option<Vec<u8>>, <InMemory<H> as Backend<H>>::Error>
fn child_storage(
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, <InMemory<H> as Backend<H>>::Error>
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, <InMemory<H> as Backend<H>>::Error>
fn exists_storage(
&self,
key: &[u8]
) -> Result<bool, <InMemory<H> as Backend<H>>::Error>
[src]
&self,
key: &[u8]
) -> Result<bool, <InMemory<H> as Backend<H>>::Error>
fn for_keys_with_prefix<F>(&self, prefix: &[u8], f: F) where
F: FnMut(&[u8]),
[src]
F: FnMut(&[u8]),
fn for_key_values_with_prefix<F>(&self, prefix: &[u8], f: F) where
F: FnMut(&[u8], &[u8]),
[src]
F: FnMut(&[u8], &[u8]),
fn for_keys_in_child_storage<F>(
&self,
storage_key: &[u8],
child_info: ChildInfo,
f: F
) where
F: FnMut(&[u8]),
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
f: F
) where
F: FnMut(&[u8]),
fn for_child_keys_with_prefix<F>(
&self,
storage_key: &[u8],
child_info: ChildInfo,
prefix: &[u8],
f: F
) where
F: FnMut(&[u8]),
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
prefix: &[u8],
f: F
) where
F: FnMut(&[u8]),
fn storage_root<I>(
&self,
delta: I
) -> (<H as Hasher>::Out, <InMemory<H> as Backend<H>>::Transaction) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
<H as Hasher>::Out: Ord,
[src]
&self,
delta: I
) -> (<H as Hasher>::Out, <InMemory<H> as Backend<H>>::Transaction) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
<H as Hasher>::Out: Ord,
fn child_storage_root<I>(
&self,
storage_key: &[u8],
child_info: ChildInfo,
delta: I
) -> (<H as Hasher>::Out, bool, <InMemory<H> as Backend<H>>::Transaction) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
<H as Hasher>::Out: Ord,
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
delta: I
) -> (<H as Hasher>::Out, bool, <InMemory<H> as Backend<H>>::Transaction) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
<H as Hasher>::Out: Ord,
fn next_storage_key(
&self,
key: &[u8]
) -> Result<Option<Vec<u8>>, <InMemory<H> as Backend<H>>::Error>
[src]
&self,
key: &[u8]
) -> Result<Option<Vec<u8>>, <InMemory<H> as Backend<H>>::Error>
fn next_child_storage_key(
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, <InMemory<H> as Backend<H>>::Error>
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, <InMemory<H> as Backend<H>>::Error>
fn pairs(&self) -> Vec<(Vec<u8>, Vec<u8>)>
[src]
fn keys(&self, prefix: &[u8]) -> Vec<Vec<u8>>
[src]
fn child_keys(
&self,
storage_key: &[u8],
child_info: ChildInfo,
prefix: &[u8]
) -> Vec<Vec<u8>>
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
prefix: &[u8]
) -> Vec<Vec<u8>>
fn as_trie_backend(
&mut self
) -> Option<&TrieBackend<<InMemory<H> as Backend<H>>::TrieBackendStorage, H>>
[src]
&mut self
) -> Option<&TrieBackend<<InMemory<H> as Backend<H>>::TrieBackendStorage, H>>
impl<S, H> Backend<H> for TrieBackend<S, H> where
H: Hasher,
S: TrieBackendStorage<H>,
<H as Hasher>::Out: Ord,
<H as Hasher>::Out: Codec,
[src]
H: Hasher,
S: TrieBackendStorage<H>,
<H as Hasher>::Out: Ord,
<H as Hasher>::Out: Codec,
type Error = String
type Transaction = <S as TrieBackendStorage<H>>::Overlay
type TrieBackendStorage = S
fn storage(
&self,
key: &[u8]
) -> Result<Option<Vec<u8>>, <TrieBackend<S, H> as Backend<H>>::Error>
[src]
&self,
key: &[u8]
) -> Result<Option<Vec<u8>>, <TrieBackend<S, H> as Backend<H>>::Error>
fn child_storage(
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, <TrieBackend<S, H> as Backend<H>>::Error>
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, <TrieBackend<S, H> as Backend<H>>::Error>
fn next_storage_key(
&self,
key: &[u8]
) -> Result<Option<Vec<u8>>, <TrieBackend<S, H> as Backend<H>>::Error>
[src]
&self,
key: &[u8]
) -> Result<Option<Vec<u8>>, <TrieBackend<S, H> as Backend<H>>::Error>
fn next_child_storage_key(
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, <TrieBackend<S, H> as Backend<H>>::Error>
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, <TrieBackend<S, H> as Backend<H>>::Error>
fn for_keys_with_prefix<F>(&self, prefix: &[u8], f: F) where
F: FnMut(&[u8]),
[src]
F: FnMut(&[u8]),
fn for_key_values_with_prefix<F>(&self, prefix: &[u8], f: F) where
F: FnMut(&[u8], &[u8]),
[src]
F: FnMut(&[u8], &[u8]),
fn for_keys_in_child_storage<F>(
&self,
storage_key: &[u8],
child_info: ChildInfo,
f: F
) where
F: FnMut(&[u8]),
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
f: F
) where
F: FnMut(&[u8]),
fn for_child_keys_with_prefix<F>(
&self,
storage_key: &[u8],
child_info: ChildInfo,
prefix: &[u8],
f: F
) where
F: FnMut(&[u8]),
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
prefix: &[u8],
f: F
) where
F: FnMut(&[u8]),
fn pairs(&self) -> Vec<(Vec<u8>, Vec<u8>)>
[src]
fn keys(&self, prefix: &[u8]) -> Vec<Vec<u8>>
[src]
fn storage_root<I>(
&self,
delta: I
) -> (<H as Hasher>::Out, <S as TrieBackendStorage<H>>::Overlay) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
[src]
&self,
delta: I
) -> (<H as Hasher>::Out, <S as TrieBackendStorage<H>>::Overlay) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
fn child_storage_root<I>(
&self,
storage_key: &[u8],
child_info: ChildInfo,
delta: I
) -> (<H as Hasher>::Out, bool, <TrieBackend<S, H> as Backend<H>>::Transaction) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
<H as Hasher>::Out: Ord,
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
delta: I
) -> (<H as Hasher>::Out, bool, <TrieBackend<S, H> as Backend<H>>::Transaction) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
<H as Hasher>::Out: Ord,
fn as_trie_backend(
&mut self
) -> Option<&TrieBackend<<TrieBackend<S, H> as Backend<H>>::TrieBackendStorage, H>>
[src]
&mut self
) -> Option<&TrieBackend<<TrieBackend<S, H> as Backend<H>>::TrieBackendStorage, H>>
impl<'a, S, H> Backend<H> for ProvingBackend<'a, S, H> where
H: 'a + Hasher,
S: 'a + TrieBackendStorage<H>,
<H as Hasher>::Out: Ord,
<H as Hasher>::Out: Codec,
[src]
H: 'a + Hasher,
S: 'a + TrieBackendStorage<H>,
<H as Hasher>::Out: Ord,
<H as Hasher>::Out: Codec,
type Error = String
type Transaction = <S as TrieBackendStorage<H>>::Overlay
type TrieBackendStorage = S
fn storage(
&self,
key: &[u8]
) -> Result<Option<Vec<u8>>, <ProvingBackend<'a, S, H> as Backend<H>>::Error>
[src]
&self,
key: &[u8]
) -> Result<Option<Vec<u8>>, <ProvingBackend<'a, S, H> as Backend<H>>::Error>
fn child_storage(
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, <ProvingBackend<'a, S, H> as Backend<H>>::Error>
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, <ProvingBackend<'a, S, H> as Backend<H>>::Error>
fn for_keys_in_child_storage<F>(
&self,
storage_key: &[u8],
child_info: ChildInfo,
f: F
) where
F: FnMut(&[u8]),
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
f: F
) where
F: FnMut(&[u8]),
fn next_storage_key(
&self,
key: &[u8]
) -> Result<Option<Vec<u8>>, <ProvingBackend<'a, S, H> as Backend<H>>::Error>
[src]
&self,
key: &[u8]
) -> Result<Option<Vec<u8>>, <ProvingBackend<'a, S, H> as Backend<H>>::Error>
fn next_child_storage_key(
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, <ProvingBackend<'a, S, H> as Backend<H>>::Error>
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, <ProvingBackend<'a, S, H> as Backend<H>>::Error>
fn for_keys_with_prefix<F>(&self, prefix: &[u8], f: F) where
F: FnMut(&[u8]),
[src]
F: FnMut(&[u8]),
fn for_key_values_with_prefix<F>(&self, prefix: &[u8], f: F) where
F: FnMut(&[u8], &[u8]),
[src]
F: FnMut(&[u8], &[u8]),
fn for_child_keys_with_prefix<F>(
&self,
storage_key: &[u8],
child_info: ChildInfo,
prefix: &[u8],
f: F
) where
F: FnMut(&[u8]),
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
prefix: &[u8],
f: F
) where
F: FnMut(&[u8]),
fn pairs(&self) -> Vec<(Vec<u8>, Vec<u8>)>
[src]
fn keys(&self, prefix: &[u8]) -> Vec<Vec<u8>>
[src]
fn child_keys(
&self,
storage_key: &[u8],
child_info: ChildInfo,
prefix: &[u8]
) -> Vec<Vec<u8>>
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
prefix: &[u8]
) -> Vec<Vec<u8>>
fn storage_root<I>(
&self,
delta: I
) -> (<H as Hasher>::Out, <ProvingBackend<'a, S, H> as Backend<H>>::Transaction) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
[src]
&self,
delta: I
) -> (<H as Hasher>::Out, <ProvingBackend<'a, S, H> as Backend<H>>::Transaction) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
fn child_storage_root<I>(
&self,
storage_key: &[u8],
child_info: ChildInfo,
delta: I
) -> (<H as Hasher>::Out, bool, <ProvingBackend<'a, S, H> as Backend<H>>::Transaction) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
<H as Hasher>::Out: Ord,
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
delta: I
) -> (<H as Hasher>::Out, bool, <ProvingBackend<'a, S, H> as Backend<H>>::Transaction) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
<H as Hasher>::Out: Ord,
impl<'a, T, H> Backend<H> for &'a T where
H: Hasher,
T: Backend<H>,
[src]
H: Hasher,
T: Backend<H>,
type Error = <T as Backend<H>>::Error
type Transaction = <T as Backend<H>>::Transaction
type TrieBackendStorage = <T as Backend<H>>::TrieBackendStorage
fn storage(
&self,
key: &[u8]
) -> Result<Option<Vec<u8>>, <&'a T as Backend<H>>::Error>
[src]
&self,
key: &[u8]
) -> Result<Option<Vec<u8>>, <&'a T as Backend<H>>::Error>
fn child_storage(
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, <&'a T as Backend<H>>::Error>
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, <&'a T as Backend<H>>::Error>
fn for_keys_in_child_storage<F>(
&self,
storage_key: &[u8],
child_info: ChildInfo,
f: F
) where
F: FnMut(&[u8]),
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
f: F
) where
F: FnMut(&[u8]),
fn next_storage_key(
&self,
key: &[u8]
) -> Result<Option<Vec<u8>>, <&'a T as Backend<H>>::Error>
[src]
&self,
key: &[u8]
) -> Result<Option<Vec<u8>>, <&'a T as Backend<H>>::Error>
fn next_child_storage_key(
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, <&'a T as Backend<H>>::Error>
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
key: &[u8]
) -> Result<Option<Vec<u8>>, <&'a T as Backend<H>>::Error>
fn for_keys_with_prefix<F>(&self, prefix: &[u8], f: F) where
F: FnMut(&[u8]),
[src]
F: FnMut(&[u8]),
fn for_child_keys_with_prefix<F>(
&self,
storage_key: &[u8],
child_info: ChildInfo,
prefix: &[u8],
f: F
) where
F: FnMut(&[u8]),
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
prefix: &[u8],
f: F
) where
F: FnMut(&[u8]),
fn storage_root<I>(
&self,
delta: I
) -> (<H as Hasher>::Out, <&'a T as Backend<H>>::Transaction) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
<H as Hasher>::Out: Ord,
[src]
&self,
delta: I
) -> (<H as Hasher>::Out, <&'a T as Backend<H>>::Transaction) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
<H as Hasher>::Out: Ord,
fn child_storage_root<I>(
&self,
storage_key: &[u8],
child_info: ChildInfo,
delta: I
) -> (<H as Hasher>::Out, bool, <&'a T as Backend<H>>::Transaction) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
<H as Hasher>::Out: Ord,
[src]
&self,
storage_key: &[u8],
child_info: ChildInfo,
delta: I
) -> (<H as Hasher>::Out, bool, <&'a T as Backend<H>>::Transaction) where
I: IntoIterator<Item = (Vec<u8>, Option<Vec<u8>>)>,
<H as Hasher>::Out: Ord,
fn pairs(&self) -> Vec<(Vec<u8>, Vec<u8>)>
[src]
fn for_key_values_with_prefix<F>(&self, prefix: &[u8], f: F) where
F: FnMut(&[u8], &[u8]),
[src]
F: FnMut(&[u8], &[u8]),