Enum miden_lib::transaction::TransactionEvent
source · #[repr(u32)]pub enum TransactionEvent {
Show 15 variants
AccountVaultBeforeAddAsset = 131_072,
AccountVaultAfterAddAsset = 131_073,
AccountVaultBeforeRemoveAsset = 131_074,
AccountVaultAfterRemoveAsset = 131_075,
AccountStorageBeforeSetItem = 131_076,
AccountStorageAfterSetItem = 131_077,
AccountStorageBeforeSetMapItem = 131_078,
AccountStorageAfterSetMapItem = 131_079,
AccountBeforeIncrementNonce = 131_080,
AccountAfterIncrementNonce = 131_081,
AccountPushProcedureIndex = 131_082,
NoteBeforeCreated = 131_083,
NoteAfterCreated = 131_084,
NoteBeforeAddAsset = 131_085,
NoteAfterAddAsset = 131_086,
}Expand description
Events which may be emitted by a transaction kernel.
The events are emitted via the emit.<event_id> instruction. The event ID is a 32-bit
unsigned integer which is used to identify the event type. For events emitted by the
transaction kernel, the event_id is structured as follows:
- The upper 16 bits of the event ID are set to 2.
- The lower 16 bits represent a unique event ID within the transaction kernel.
Variants§
AccountVaultBeforeAddAsset = 131_072
AccountVaultAfterAddAsset = 131_073
AccountVaultBeforeRemoveAsset = 131_074
AccountVaultAfterRemoveAsset = 131_075
AccountStorageBeforeSetItem = 131_076
AccountStorageAfterSetItem = 131_077
AccountStorageBeforeSetMapItem = 131_078
AccountStorageAfterSetMapItem = 131_079
AccountBeforeIncrementNonce = 131_080
AccountAfterIncrementNonce = 131_081
AccountPushProcedureIndex = 131_082
NoteBeforeCreated = 131_083
NoteAfterCreated = 131_084
NoteBeforeAddAsset = 131_085
NoteAfterAddAsset = 131_086
Trait Implementations§
source§impl Clone for TransactionEvent
impl Clone for TransactionEvent
source§fn clone(&self) -> TransactionEvent
fn clone(&self) -> TransactionEvent
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 Debug for TransactionEvent
impl Debug for TransactionEvent
source§impl Display for TransactionEvent
impl Display for TransactionEvent
source§impl PartialEq for TransactionEvent
impl PartialEq for TransactionEvent
source§fn eq(&self, other: &TransactionEvent) -> bool
fn eq(&self, other: &TransactionEvent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u32> for TransactionEvent
impl TryFrom<u32> for TransactionEvent
impl Eq for TransactionEvent
impl StructuralPartialEq for TransactionEvent
Auto Trait Implementations§
impl Freeze for TransactionEvent
impl RefUnwindSafe for TransactionEvent
impl Send for TransactionEvent
impl Sync for TransactionEvent
impl Unpin for TransactionEvent
impl UnwindSafe for TransactionEvent
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)