Struct aleo_rust::snarkvm_types::ConsensusMemory
pub struct ConsensusMemory<N>where
N: Network,{ /* private fields */ }
Expand description
An in-memory consensus storage.
Trait Implementations§
§impl<N> Clone for ConsensusMemory<N>where
N: Clone + Network,
impl<N> Clone for ConsensusMemory<N>where N: Clone + Network,
§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 more§impl<N> ConsensusStorage<N> for ConsensusMemory<N>where
N: Network,
impl<N> ConsensusStorage<N> for ConsensusMemory<N>where N: Network,
§fn program_store(
&self
) -> &ProgramStore<N, <ConsensusMemory<N> as ConsensusStorage<N>>::ProgramStorage>
fn program_store( &self ) -> &ProgramStore<N, <ConsensusMemory<N> as ConsensusStorage<N>>::ProgramStorage>
Returns the program store.
§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 ProgramStorage = ProgramMemory<N>
type ProgramStorage = ProgramMemory<N>
The program 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.
§fn transaction_store(&self) -> &TransactionStore<N, Self::TransactionStorage>
fn transaction_store(&self) -> &TransactionStore<N, Self::TransactionStorage>
Returns the transaction store.
§fn transition_store(&self) -> &TransitionStore<N, Self::TransitionStorage>
fn transition_store(&self) -> &TransitionStore<N, Self::TransitionStorage>
Returns the transition store.
§fn start_atomic(&self)
fn start_atomic(&self)
Starts an atomic batch write operation.
§fn is_atomic_in_progress(&self) -> bool
fn is_atomic_in_progress(&self) -> bool
Checks if an atomic batch is in progress.
§fn abort_atomic(&self)
fn abort_atomic(&self)
Aborts an atomic batch write operation.
§fn finish_atomic(&self) -> Result<(), Error>
fn finish_atomic(&self) -> Result<(), Error>
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