Struct snarkvm_ledger_store::helpers::memory::ConsensusMemory
source · pub struct ConsensusMemory<N: Network> { /* private fields */ }
Expand description
An in-memory consensus storage.
Trait Implementations§
source§impl<N: Clone + Network> Clone for ConsensusMemory<N>
impl<N: Clone + Network> Clone for ConsensusMemory<N>
source§fn clone(&self) -> ConsensusMemory<N>
fn clone(&self) -> ConsensusMemory<N>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<N: Network> ConsensusStorage<N> for ConsensusMemory<N>
impl<N: Network> ConsensusStorage<N> for ConsensusMemory<N>
source§fn finalize_store(&self) -> &FinalizeStore<N, Self::FinalizeStorage>
fn finalize_store(&self) -> &FinalizeStore<N, Self::FinalizeStorage>
Returns the finalize store.
source§fn block_store(&self) -> &BlockStore<N, Self::BlockStorage>
fn block_store(&self) -> &BlockStore<N, Self::BlockStorage>
Returns the block store.
§type FinalizeStorage = FinalizeMemory<N>
type FinalizeStorage = FinalizeMemory<N>
The finalize storage.
§type BlockStorage = BlockMemory<N>
type BlockStorage = BlockMemory<N>
The block storage.
§type TransactionStorage = TransactionMemory<N>
type TransactionStorage = TransactionMemory<N>
The transaction storage.
§type TransitionStorage = TransitionMemory<N>
type TransitionStorage = TransitionMemory<N>
The transition storage.
source§fn transaction_store(&self) -> &TransactionStore<N, Self::TransactionStorage>
fn transaction_store(&self) -> &TransactionStore<N, Self::TransactionStorage>
Returns the transaction store.
source§fn transition_store(&self) -> &TransitionStore<N, Self::TransitionStorage>
fn transition_store(&self) -> &TransitionStore<N, Self::TransitionStorage>
Returns the transition store.
source§fn start_atomic(&self)
fn start_atomic(&self)
Starts an atomic batch write operation.
source§fn is_atomic_in_progress(&self) -> bool
fn is_atomic_in_progress(&self) -> bool
Checks if an atomic batch is in progress.
source§fn atomic_checkpoint(&self)
fn atomic_checkpoint(&self)
Checkpoints the atomic batch.
source§fn clear_latest_checkpoint(&self)
fn clear_latest_checkpoint(&self)
Clears the latest atomic batch checkpoint.
source§fn atomic_rewind(&self)
fn atomic_rewind(&self)
Rewinds the atomic batch to the previous checkpoint.
source§fn abort_atomic(&self)
fn abort_atomic(&self)
Aborts an atomic batch write operation.
source§fn finish_atomic(&self) -> Result<()>
fn finish_atomic(&self) -> Result<()>
Finishes an atomic batch write operation.
Auto Trait Implementations§
impl<N> !RefUnwindSafe for ConsensusMemory<N>
impl<N> Send for ConsensusMemory<N>
impl<N> Sync for ConsensusMemory<N>
impl<N> Unpin for ConsensusMemory<N>where N: Unpin,
impl<N> !UnwindSafe for ConsensusMemory<N>
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