Struct snarkvm_compiler::TransactionMemory
source · [−]pub struct TransactionMemory<N: Network> { /* private fields */ }
Expand description
An in-memory transaction storage.
Trait Implementations
sourceimpl<N: Clone + Network> Clone for TransactionMemory<N> where
N::TransactionID: Clone,
impl<N: Clone + Network> Clone for TransactionMemory<N> where
N::TransactionID: Clone,
sourcefn clone(&self) -> TransactionMemory<N>
fn clone(&self) -> TransactionMemory<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> TransactionStorage<N> for TransactionMemory<N>
impl<N: Network> TransactionStorage<N> for TransactionMemory<N>
sourcefn open(
transition_store: TransitionStore<N, Self::TransitionStorage>
) -> Result<Self>
fn open(
transition_store: TransitionStore<N, Self::TransitionStorage>
) -> Result<Self>
Initializes the transaction storage.
sourcefn deployment_store(&self) -> &DeploymentStore<N, Self::DeploymentStorage>
fn deployment_store(&self) -> &DeploymentStore<N, Self::DeploymentStorage>
Returns the deployment store.
sourcefn execution_store(&self) -> &ExecutionStore<N, Self::ExecutionStorage>
fn execution_store(&self) -> &ExecutionStore<N, Self::ExecutionStorage>
Returns the execution store.
type IDMap = MemoryMap<<N as Network>::TransactionID, TransactionType>
type IDMap = MemoryMap<<N as Network>::TransactionID, TransactionType>
The mapping of transaction ID
to transaction type
.
type DeploymentStorage = DeploymentMemory<N>
type DeploymentStorage = DeploymentMemory<N>
The deployment storage.
type ExecutionStorage = ExecutionMemory<N>
type ExecutionStorage = ExecutionMemory<N>
The execution storage.
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 transaction
into storage.
sourcefn remove(&self, transaction_id: &N::TransactionID) -> Result<()>
fn remove(&self, transaction_id: &N::TransactionID) -> Result<()>
Removes the 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 find_deployment_id(
&self,
program_id: &ProgramID<N>
) -> Result<Option<N::TransactionID>>
fn find_deployment_id(
&self,
program_id: &ProgramID<N>
) -> Result<Option<N::TransactionID>>
Returns the transaction ID that contains the given program 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 TransactionMemory<N>
impl<N> Send for TransactionMemory<N>
impl<N> Sync for TransactionMemory<N>
impl<N> Unpin for TransactionMemory<N> where
N: Unpin,
impl<N> !UnwindSafe for TransactionMemory<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