Struct snarkvm_ledger_store::helpers::memory::TransitionMemory
source · pub struct TransitionMemory<N: Network> { /* private fields */ }
Expand description
An in-memory transition storage.
Trait Implementations§
source§impl<N: Clone + Network> Clone for TransitionMemory<N>where
N::TransitionID: Clone,
impl<N: Clone + Network> Clone for TransitionMemory<N>where N::TransitionID: Clone,
source§fn clone(&self) -> TransitionMemory<N>
fn clone(&self) -> TransitionMemory<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> TransitionStorage<N> for TransitionMemory<N>
impl<N: Network> TransitionStorage<N> for TransitionMemory<N>
source§fn locator_map(&self) -> &Self::LocatorMap
fn locator_map(&self) -> &Self::LocatorMap
Returns the transition program IDs and function names.
source§fn input_store(&self) -> &InputStore<N, Self::InputStorage>
fn input_store(&self) -> &InputStore<N, Self::InputStorage>
Returns the transition input store.
source§fn output_store(&self) -> &OutputStore<N, Self::OutputStorage>
fn output_store(&self) -> &OutputStore<N, Self::OutputStorage>
Returns the transition output store.
source§fn reverse_tpk_map(&self) -> &Self::ReverseTPKMap
fn reverse_tpk_map(&self) -> &Self::ReverseTPKMap
Returns the reverse tpk
map.
source§fn reverse_tcm_map(&self) -> &Self::ReverseTCMMap
fn reverse_tcm_map(&self) -> &Self::ReverseTCMMap
Returns the reverse tcm
map.
§type LocatorMap = MemoryMap<<N as Network>::TransitionID, (ProgramID<N>, Identifier<N>)>
type LocatorMap = MemoryMap<<N as Network>::TransitionID, (ProgramID<N>, Identifier<N>)>
The transition program IDs and function names.
§type InputStorage = InputMemory<N>
type InputStorage = InputMemory<N>
The transition inputs.
§type OutputStorage = OutputMemory<N>
type OutputStorage = OutputMemory<N>
The transition outputs.
§type ReverseTPKMap = MemoryMap<Group<N>, <N as Network>::TransitionID>
type ReverseTPKMap = MemoryMap<Group<N>, <N as Network>::TransitionID>
The mapping of
transition public key
to transition ID
.§type ReverseTCMMap = MemoryMap<Field<N>, <N as Network>::TransitionID>
type ReverseTCMMap = MemoryMap<Field<N>, <N as Network>::TransitionID>
The mapping of
transition commitment
to transition ID
.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.
source§fn insert(&self, transition: &Transition<N>) -> Result<()>
fn insert(&self, transition: &Transition<N>) -> Result<()>
Stores the given
transition
into storage.Auto Trait Implementations§
impl<N> !RefUnwindSafe for TransitionMemory<N>
impl<N> Send for TransitionMemory<N>
impl<N> Sync for TransitionMemory<N>
impl<N> Unpin for TransitionMemory<N>
impl<N> !UnwindSafe for TransitionMemory<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