Struct evmc_sys::evmc_message[][src]

#[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_kind

The kind of the call. For zero-depth calls ::EVMC_CALL SHOULD be used.

flags: u32

Additional flags modifying the call execution behavior. In the current version the only valid values are ::EVMC_STATIC or 0.

depth: i32

The call depth.

gas: i64

The amount of gas for message execution.

destination: evmc_address

The destination of the message.

sender: evmc_address

The sender of the message.

input_data: *const u8

The message input data.

This MAY be NULL.

input_size: usize

The size of the message input data.

If input_data is NULL this MUST be 0.

value: evmc_uint256be

The amount of Ether transferred with the message.

create2_salt: evmc_bytes32

The optional value used in new contract address construction.

Ignored unless kind is EVMC_CREATE2.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.