pub struct RocksDbMmrStore {
db: DB,
}Expand description
RocksDB-backed MMR store.
This is separate from RocksDbStore because the runtime owns three logical
MMRs with independent append positions: command, obligation, and intent.
Fields§
§db: DBImplementations§
Trait Implementations§
Source§impl MMRStoreReadOps<MmrHash> for &RocksDbMmrStore
impl MMRStoreReadOps<MmrHash> for &RocksDbMmrStore
Source§impl MMRStoreWriteOps<MmrHash> for &RocksDbMmrStore
impl MMRStoreWriteOps<MmrHash> for &RocksDbMmrStore
Source§impl MmrMetadataStore for RocksDbMmrStore
impl MmrMetadataStore for RocksDbMmrStore
fn load_mmr_size(&self) -> Result<u64>
Source§impl PrepareMmrStore for RocksDbMmrStore
impl PrepareMmrStore for RocksDbMmrStore
fn prepare_append_many_from( size: u64, store: &Self, data: &[[u8; 32]], ) -> Result<PreparedMmrAppend>
impl SupportedMmrStore for RocksDbMmrStore
Auto Trait Implementations§
impl Freeze for RocksDbMmrStore
impl RefUnwindSafe for RocksDbMmrStore
impl Send for RocksDbMmrStore
impl Sync for RocksDbMmrStore
impl Unpin for RocksDbMmrStore
impl UnsafeUnpin for RocksDbMmrStore
impl UnwindSafe for RocksDbMmrStore
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