[][src]Struct evmc_sys::evmc_message

#[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,
}

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

impl Clone for evmc_message[src]

impl Copy for evmc_message[src]

impl Debug for evmc_message[src]

impl Hash for evmc_message[src]

impl PartialEq<evmc_message> for evmc_message[src]

impl StructuralPartialEq for evmc_message[src]

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.