Struct snarkvm_compiler::ExecutionStore
source · [−]pub struct ExecutionStore<N: Network, E: ExecutionStorage<N>> { /* private fields */ }
Expand description
The execution store.
Implementations
sourceimpl<N: Network, E: ExecutionStorage<N>> ExecutionStore<N, E>
impl<N: Network, E: ExecutionStorage<N>> ExecutionStore<N, E>
sourcepub fn open(
transition_store: TransitionStore<N, E::TransitionStorage>
) -> Result<Self>
pub fn open(
transition_store: TransitionStore<N, E::TransitionStorage>
) -> Result<Self>
Initializes the execution store.
sourcepub fn insert(&self, transaction: &Transaction<N>) -> Result<()>
pub fn insert(&self, transaction: &Transaction<N>) -> Result<()>
Stores the given execution transaction
into storage.
sourcepub fn remove(&self, transaction_id: &N::TransactionID) -> Result<()>
pub fn remove(&self, transaction_id: &N::TransactionID) -> Result<()>
Removes the transaction for the given transaction ID
.
sourcepub fn transition_store(&self) -> &TransitionStore<N, E::TransitionStorage>
pub fn transition_store(&self) -> &TransitionStore<N, E::TransitionStorage>
Returns the transition store.
sourcepub fn start_atomic(&self)
pub fn start_atomic(&self)
Starts an atomic batch write operation.
sourcepub fn is_atomic_in_progress(&self) -> bool
pub fn is_atomic_in_progress(&self) -> bool
Checks if an atomic batch is in progress.
sourcepub fn abort_atomic(&self)
pub fn abort_atomic(&self)
Aborts an atomic batch write operation.
sourcepub fn finish_atomic(&self) -> Result<()>
pub fn finish_atomic(&self) -> Result<()>
Finishes an atomic batch write operation.
sourceimpl<N: Network, E: ExecutionStorage<N>> ExecutionStore<N, E>
impl<N: Network, E: ExecutionStorage<N>> ExecutionStore<N, E>
sourcepub fn get_transaction(
&self,
transaction_id: &N::TransactionID
) -> Result<Option<Transaction<N>>>
pub fn get_transaction(
&self,
transaction_id: &N::TransactionID
) -> Result<Option<Transaction<N>>>
Returns the transaction for the given transaction ID
.
sourcepub fn get_execution(
&self,
transaction_id: &N::TransactionID
) -> Result<Option<Execution<N>>>
pub fn get_execution(
&self,
transaction_id: &N::TransactionID
) -> Result<Option<Execution<N>>>
Returns the execution for the given transaction ID
.
sourcepub fn get_edition(
&self,
transaction_id: &N::TransactionID
) -> Result<Option<u16>>
pub fn get_edition(
&self,
transaction_id: &N::TransactionID
) -> Result<Option<u16>>
Returns the edition for the given transaction ID
.
sourcepub fn get_additional_fee(
&self,
transaction_id: &N::TransactionID
) -> Result<Option<AdditionalFee<N>>>
pub fn get_additional_fee(
&self,
transaction_id: &N::TransactionID
) -> Result<Option<AdditionalFee<N>>>
Returns the additional fee for the given transaction ID
.
sourceimpl<N: Network, E: ExecutionStorage<N>> ExecutionStore<N, E>
impl<N: Network, E: ExecutionStorage<N>> ExecutionStore<N, E>
sourcepub fn find_transaction_id(
&self,
transition_id: &N::TransitionID
) -> Result<Option<N::TransactionID>>
pub fn find_transaction_id(
&self,
transition_id: &N::TransitionID
) -> Result<Option<N::TransactionID>>
Returns the transaction ID that executed the given transition ID
.
sourceimpl<N: Network, E: ExecutionStorage<N>> ExecutionStore<N, E>
impl<N: Network, E: ExecutionStorage<N>> ExecutionStore<N, E>
sourcepub fn execution_ids(
&self
) -> impl '_ + Iterator<Item = Cow<'_, N::TransactionID>>
pub fn execution_ids(
&self
) -> impl '_ + Iterator<Item = Cow<'_, N::TransactionID>>
Returns an iterator over the execution transaction IDs, for all executions.
Trait Implementations
sourceimpl<N: Clone + Network, E: Clone + ExecutionStorage<N>> Clone for ExecutionStore<N, E>
impl<N: Clone + Network, E: Clone + ExecutionStorage<N>> Clone for ExecutionStore<N, E>
sourcefn clone(&self) -> ExecutionStore<N, E>
fn clone(&self) -> ExecutionStore<N, E>
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
Auto Trait Implementations
impl<N, E> RefUnwindSafe for ExecutionStore<N, E> where
E: RefUnwindSafe,
N: RefUnwindSafe,
impl<N, E> Send for ExecutionStore<N, E> where
E: Send,
impl<N, E> Sync for ExecutionStore<N, E>
impl<N, E> Unpin for ExecutionStore<N, E> where
E: Unpin,
N: Unpin,
impl<N, E> UnwindSafe for ExecutionStore<N, E> where
E: UnwindSafe,
N: UnwindSafe,
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