Struct snarkvm_compiler::ExecutionMemory
source · [−]pub struct ExecutionMemory<N: Network> { /* private fields */ }
Expand description
An in-memory execution storage.
Trait Implementations
sourceimpl<N: Clone + Network> Clone for ExecutionMemory<N> where
N::TransactionID: Clone,
N::TransitionID: Clone,
N::TransitionID: Clone,
N::TransitionID: Clone,
N::TransactionID: Clone,
N::TransactionID: Clone,
impl<N: Clone + Network> Clone for ExecutionMemory<N> where
N::TransactionID: Clone,
N::TransitionID: Clone,
N::TransitionID: Clone,
N::TransitionID: Clone,
N::TransactionID: Clone,
N::TransactionID: Clone,
sourcefn clone(&self) -> ExecutionMemory<N>
fn clone(&self) -> ExecutionMemory<N>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<N: Network> ExecutionStorage<N> for ExecutionMemory<N>
impl<N: Network> ExecutionStorage<N> for ExecutionMemory<N>
sourcefn open(
transition_store: TransitionStore<N, Self::TransitionStorage>
) -> Result<Self>
fn open(
transition_store: TransitionStore<N, Self::TransitionStorage>
) -> Result<Self>
Initializes the execution storage.
sourcefn reverse_id_map(&self) -> &Self::ReverseIDMap
fn reverse_id_map(&self) -> &Self::ReverseIDMap
Returns the reverse ID map.
sourcefn edition_map(&self) -> &Self::EditionMap
fn edition_map(&self) -> &Self::EditionMap
Returns the edition map.
sourcefn transition_store(&self) -> &TransitionStore<N, Self::TransitionStorage>
fn transition_store(&self) -> &TransitionStore<N, Self::TransitionStorage>
Returns the transition store.
type IDMap = MemoryMap<<N as Network>::TransactionID, (Vec<<N as Network>::TransitionID, Global>, Option<<N as Network>::TransitionID>)>
type IDMap = MemoryMap<<N as Network>::TransactionID, (Vec<<N as Network>::TransitionID, Global>, Option<<N as Network>::TransitionID>)>
The mapping of transaction ID
to ([transition ID], (optional) transition ID)
.
type ReverseIDMap = MemoryMap<<N as Network>::TransitionID, <N as Network>::TransactionID>
type ReverseIDMap = MemoryMap<<N as Network>::TransitionID, <N as Network>::TransactionID>
The mapping of transition ID
to transaction ID
.
type EditionMap = MemoryMap<<N as Network>::TransactionID, u16>
type EditionMap = MemoryMap<<N as Network>::TransactionID, u16>
The mapping of program ID
to edition
.
type TransitionStorage = TransitionMemory<N>
type TransitionStorage = TransitionMemory<N>
The transition storage.
sourcefn start_atomic(&self)
fn start_atomic(&self)
Starts an atomic batch write operation.
sourcefn is_atomic_in_progress(&self) -> bool
fn is_atomic_in_progress(&self) -> bool
Checks if an atomic batch is in progress.
sourcefn abort_atomic(&self)
fn abort_atomic(&self)
Aborts an atomic batch write operation.
sourcefn finish_atomic(&self) -> Result<()>
fn finish_atomic(&self) -> Result<()>
Finishes an atomic batch write operation.
sourcefn insert(&self, transaction: &Transaction<N>) -> Result<()>
fn insert(&self, transaction: &Transaction<N>) -> Result<()>
Stores the given execution transaction
pair into storage.
sourcefn remove(&self, transaction_id: &N::TransactionID) -> Result<()>
fn remove(&self, transaction_id: &N::TransactionID) -> Result<()>
Removes the execution transaction for the given transaction ID
.
sourcefn find_transaction_id(
&self,
transition_id: &N::TransitionID
) -> Result<Option<N::TransactionID>>
fn find_transaction_id(
&self,
transition_id: &N::TransitionID
) -> Result<Option<N::TransactionID>>
Returns the transaction ID that contains the given transition ID
.
sourcefn get_execution(
&self,
transaction_id: &N::TransactionID
) -> Result<Option<Execution<N>>>
fn get_execution(
&self,
transaction_id: &N::TransactionID
) -> Result<Option<Execution<N>>>
Returns the execution for the given transaction ID
.
sourcefn get_transaction(
&self,
transaction_id: &N::TransactionID
) -> Result<Option<Transaction<N>>>
fn get_transaction(
&self,
transaction_id: &N::TransactionID
) -> Result<Option<Transaction<N>>>
Returns the transaction for the given transaction ID
.
Auto Trait Implementations
impl<N> !RefUnwindSafe for ExecutionMemory<N>
impl<N> Send for ExecutionMemory<N>
impl<N> Sync for ExecutionMemory<N>
impl<N> Unpin for ExecutionMemory<N>
impl<N> !UnwindSafe for ExecutionMemory<N>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more