pub trait TrieBackendStorage<H: Hasher>: Send + Sync {
// Required method
fn get(
&self,
key: &H::Out,
prefix: Prefix<'_>,
) -> Result<Option<DBValue>, DefaultError>;
}Expand description
Key-value pairs storage that is used by trie backend essence.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<H, KF> TrieBackendStorage<H> for GenericMemoryDB<H, KF>
impl<H, KF> TrieBackendStorage<H> for GenericMemoryDB<H, KF>
Source§impl<H: Hasher> TrieBackendStorage<H> for Arc<dyn Storage<H>>
Available on crate feature std only.
impl<H: Hasher> TrieBackendStorage<H> for Arc<dyn Storage<H>>
Available on crate feature
std only.