Struct aleo_rust::snarkvm_types::ConsensusMemory
source · pub struct ConsensusMemory<N>where
N: Network,{ /* private fields */ }
Expand description
An in-memory consensus storage.
Trait Implementations§
source§impl<N> Clone for ConsensusMemory<N>where
N: Clone + Network,
impl<N> Clone for ConsensusMemory<N>where N: Clone + Network,
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> ConsensusStorage<N> for ConsensusMemory<N>where
N: Network,
impl<N> ConsensusStorage<N> for ConsensusMemory<N>where N: Network,
source§fn open(dev: Option<u16>) -> Result<ConsensusMemory<N>, Error>
fn open(dev: Option<u16>) -> Result<ConsensusMemory<N>, Error>
Initializes the consensus storage.
source§fn finalize_store(
&self
) -> &FinalizeStore<N, <ConsensusMemory<N> as ConsensusStorage<N>>::FinalizeStorage>
fn finalize_store( &self ) -> &FinalizeStore<N, <ConsensusMemory<N> as ConsensusStorage<N>>::FinalizeStorage>
Returns the finalize store.
source§fn block_store(
&self
) -> &BlockStore<N, <ConsensusMemory<N> as ConsensusStorage<N>>::BlockStorage>
fn block_store( &self ) -> &BlockStore<N, <ConsensusMemory<N> as ConsensusStorage<N>>::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.
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