[][src]Struct evmc_vm::ExecutionMessage

pub struct ExecutionMessage { /* fields omitted */ }

EVMC execution message structure.

Methods

impl ExecutionMessage[src]

pub fn new(
    kind: MessageKind,
    flags: u32,
    depth: i32,
    gas: i64,
    destination: Address,
    sender: Address,
    input: Option<&[u8]>,
    value: Uint256,
    create2_salt: Bytes32
) -> Self
[src]

pub fn kind(&self) -> MessageKind[src]

Read the message kind.

pub fn flags(&self) -> u32[src]

Read the message flags.

pub fn depth(&self) -> i32[src]

Read the call depth.

pub fn gas(&self) -> i64[src]

Read the gas limit supplied with the message.

pub fn destination(&self) -> &Address[src]

Read the destination address of the message.

pub fn sender(&self) -> &Address[src]

Read the sender address of the message.

pub fn input(&self) -> Option<&Vec<u8>>[src]

Read the optional input message.

pub fn value(&self) -> &Uint256[src]

Read the value of the message.

pub fn create2_salt(&self) -> &Bytes32[src]

Read the salt for CREATE2. Only valid if the message kind is CREATE2.

Trait Implementations

impl<'_> From<&'_ evmc_message> for ExecutionMessage[src]

impl Debug for ExecutionMessage[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

type Error = !

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.

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

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

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