pub struct MemoryMmrStore {
pub data: RwLock<HashMap<u64, MmrHash>>,
}Expand description
In-memory MMR store backed by a HashMap.
Fields§
§data: RwLock<HashMap<u64, MmrHash>>Trait Implementations§
Source§impl Default for MemoryMmrStore
impl Default for MemoryMmrStore
Source§impl MMRStoreReadOps<MmrHash> for &MemoryMmrStore
impl MMRStoreReadOps<MmrHash> for &MemoryMmrStore
Source§impl MMRStoreWriteOps<MmrHash> for &MemoryMmrStore
impl MMRStoreWriteOps<MmrHash> for &MemoryMmrStore
Source§impl MmrMetadataStore for MemoryMmrStore
impl MmrMetadataStore for MemoryMmrStore
fn load_mmr_size(&self) -> Result<u64>
Source§impl PrepareMmrStore for MemoryMmrStore
impl PrepareMmrStore for MemoryMmrStore
fn prepare_append_many_from( size: u64, store: &Self, data: &[[u8; 32]], ) -> Result<PreparedMmrAppend>
impl SupportedMmrStore for MemoryMmrStore
Auto Trait Implementations§
impl !Freeze for MemoryMmrStore
impl RefUnwindSafe for MemoryMmrStore
impl Send for MemoryMmrStore
impl Sync for MemoryMmrStore
impl Unpin for MemoryMmrStore
impl UnsafeUnpin for MemoryMmrStore
impl UnwindSafe for MemoryMmrStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more