Struct zksync_vm2_interface::Event
source · pub struct Event {
pub key: U256,
pub value: U256,
pub is_first: bool,
pub shard_id: u8,
pub tx_number: u16,
}
Expand description
Event emitted by EraVM.
There is no address field because nobody is interested in events that don’t come from the event writer, so we simply do not record events coming from anywhere else.
Fields§
§key: U256
Event key.
value: U256
Event value.
is_first: bool
Is this event first in a chain of events?
shard_id: u8
Shard identifier (currently, always set to 0).
tx_number: u16
0-based index of a transaction that has emitted this event.
Trait Implementations§
impl Copy for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)