#[repr(C)]pub struct evmc_message {
pub kind: evmc_call_kind,
pub flags: u32,
pub depth: i32,
pub gas: i64,
pub destination: evmc_address,
pub sender: evmc_address,
pub input_data: *const u8,
pub input_size: usize,
pub value: evmc_uint256be,
pub create2_salt: evmc_bytes32,
}Expand description
The message describing an EVM call, including a zero-depth calls from a transaction origin.
Fields§
§kind: evmc_call_kindThe kind of the call. For zero-depth calls ::EVMC_CALL SHOULD be used.
flags: u32Additional flags modifying the call execution behavior. In the current version the only valid values are ::EVMC_STATIC or 0.
depth: i32The call depth.
gas: i64The amount of gas for message execution.
destination: evmc_addressThe destination of the message.
sender: evmc_addressThe sender of the message.
input_data: *const u8The message input data.
This MAY be NULL.
input_size: usizeThe size of the message input data.
If input_data is NULL this MUST be 0.
value: evmc_uint256beThe amount of Ether transferred with the message.
create2_salt: evmc_bytes32The optional value used in new contract address construction.
Ignored unless kind is EVMC_CREATE2.
Trait Implementations§
Source§impl Clone for evmc_message
impl Clone for evmc_message
Source§fn clone(&self) -> evmc_message
fn clone(&self) -> evmc_message
Returns a duplicate 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 evmc_message
impl Debug for evmc_message
Source§impl Hash for evmc_message
impl Hash for evmc_message
Source§impl PartialEq for evmc_message
impl PartialEq for evmc_message
impl Copy for evmc_message
impl StructuralPartialEq for evmc_message
Auto Trait Implementations§
impl Freeze for evmc_message
impl RefUnwindSafe for evmc_message
impl !Send for evmc_message
impl !Sync for evmc_message
impl Unpin for evmc_message
impl UnwindSafe for evmc_message
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