pub trait Storage<D: Digest>: Send + Sync {
// Required methods
fn size(&self) -> u64;
fn get_node(
&self,
position: u64,
) -> impl Future<Output = Result<Option<D>, Error>> + Send;
}
Expand description
A trait for accessing MMR digests from storage.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.