pub struct StagedWriteBatch { /* private fields */ }
Expand description
A staged write batch that can be committed to RocksDB.
This allows for write batches to be prepared and committed at a later time.
Implementations§
Source§impl StagedWriteBatch
impl StagedWriteBatch
Sourcepub fn version(&self) -> Version
pub fn version(&self) -> Version
Returns the new version of the chain state corresponding to this set of changes.
Sourcepub fn root_hash(&self) -> &RootHash
pub fn root_hash(&self) -> &RootHash
Returns the root hash of the jmt corresponding to this set of changes.
Sourcepub fn substore_version(&self, prefix: &str) -> Option<Version>
pub fn substore_version(&self, prefix: &str) -> Option<Version>
Returns the version of a substore in this batch, if it exists
and None
otherwise.
Auto Trait Implementations§
impl Freeze for StagedWriteBatch
impl !RefUnwindSafe for StagedWriteBatch
impl Send for StagedWriteBatch
impl !Sync for StagedWriteBatch
impl Unpin for StagedWriteBatch
impl !UnwindSafe for StagedWriteBatch
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request