[][src]Struct evmc_vm::ExecutionResult

pub struct ExecutionResult { /* fields omitted */ }

EVMC result structure.

Methods

impl ExecutionResult[src]

pub fn new(
    _status_code: StatusCode,
    _gas_left: i64,
    _output: Option<&[u8]>
) -> Self
[src]

Manually create a result.

pub fn failure() -> Self[src]

Create failure result.

pub fn revert(_gas_left: i64, _output: Option<&[u8]>) -> Self[src]

Create a revert result.

pub fn success(_gas_left: i64, _output: Option<&[u8]>) -> Self[src]

Create a successful result.

pub fn status_code(&self) -> StatusCode[src]

Read the status code.

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

Read the amount of gas left.

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

Read the output returned.

pub fn create_address(&self) -> Option<&Address>[src]

Read the address of the created account. This will likely be set when returned from a CREATE/CREATE2.

Trait Implementations

impl From<evmc_result> for ExecutionResult[src]

impl Into<*const evmc_result> for ExecutionResult[src]

Returns a pointer to a heap-allocated evmc_result.

impl Into<evmc_result> for ExecutionResult[src]

Returns a pointer to a stack-allocated evmc_result.

impl Debug for ExecutionResult[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]