pub struct LmdbBlockStore { /* private fields */ }Expand description
Lmdb block store.
Implementations§
Source§impl LmdbBlockStore
impl LmdbBlockStore
Sourcepub fn write_finality_signatures(
&self,
txn: &mut RwTransaction<'_>,
signatures: &BlockSignatures,
) -> Result<BlockHash, BlockStoreError>
pub fn write_finality_signatures( &self, txn: &mut RwTransaction<'_>, signatures: &BlockSignatures, ) -> Result<BlockHash, BlockStoreError>
Write finality signatures.
Trait Implementations§
Source§impl BlockStoreProvider for LmdbBlockStore
impl BlockStoreProvider for LmdbBlockStore
Source§type Reader<'t> = LmdbBlockStoreTransaction<'t, RoTransaction<'t>>
type Reader<'t> = LmdbBlockStoreTransaction<'t, RoTransaction<'t>>
Reader alias.
Source§type ReaderWriter<'t> = LmdbBlockStoreTransaction<'t, RwTransaction<'t>>
type ReaderWriter<'t> = LmdbBlockStoreTransaction<'t, RwTransaction<'t>>
ReaderWriter alias.
Source§fn checkout_ro(&self) -> Result<Self::Reader<'_>, BlockStoreError>
fn checkout_ro(&self) -> Result<Self::Reader<'_>, BlockStoreError>
Check out read only handle.
Source§fn checkout_rw(&mut self) -> Result<Self::ReaderWriter<'_>, BlockStoreError>
fn checkout_rw(&mut self) -> Result<Self::ReaderWriter<'_>, BlockStoreError>
Check out read write handle.
Source§impl DataSize for LmdbBlockStore
impl DataSize for LmdbBlockStore
Source§const IS_DYNAMIC: bool = true
const IS_DYNAMIC: bool = true
If
true, the type has a heap size that can vary at runtime, depending on the actual value.Source§const STATIC_HEAP_SIZE: usize = 0usize
const STATIC_HEAP_SIZE: usize = 0usize
The amount of space a value of the type always occupies. If
IS_DYNAMIC is false, this is
the total amount of heap memory occupied by the value. Otherwise this is a lower bound.Source§fn estimate_heap_size(&self) -> usize
fn estimate_heap_size(&self) -> usize
Estimates the size of heap memory taken up by this value. Read more
Auto Trait Implementations§
impl Freeze for LmdbBlockStore
impl RefUnwindSafe for LmdbBlockStore
impl Send for LmdbBlockStore
impl Sync for LmdbBlockStore
impl Unpin for LmdbBlockStore
impl UnwindSafe for LmdbBlockStore
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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