[−][src]Struct evmc_vm::ExecutionResult
EVMC result structure.
Implementations
impl ExecutionResult
[src]
pub fn new(
_status_code: StatusCode,
_gas_left: i64,
_output: Option<&[u8]>
) -> Self
[src]
_status_code: StatusCode,
_gas_left: i64,
_output: Option<&[u8]>
) -> Self
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 Debug for ExecutionResult
[src]
impl From<evmc_result> for ExecutionResult
[src]
fn from(result: evmc_result) -> Self
[src]
impl Into<*const evmc_result> for ExecutionResult
[src]
Returns a pointer to a heap-allocated evmc_result.
fn into(self) -> *const evmc_result
[src]
impl Into<evmc_result> for ExecutionResult
[src]
Returns a pointer to a stack-allocated evmc_result.
fn into(self) -> evmc_result
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExecutionResult
impl Send for ExecutionResult
impl Sync for ExecutionResult
impl Unpin for ExecutionResult
impl UnwindSafe for ExecutionResult
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,