pub trait TrieBackendStorage<H: Hasher>: Send + Sync {
type Overlay: HashDB<H, DBValue> + Default + Consolidate;
// 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 Associated Types§
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: 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.