Skip to main content

TxResult

Trait TxResult 

pub trait TxResult: Send + 'static {
    type HaltReason: Send + 'static;

    // Required methods
    fn result(&self) -> &ExecResultAndState<ExecutionResult<Self::HaltReason>>;
    fn into_result(
        self,
    ) -> ExecResultAndState<ExecutionResult<Self::HaltReason>>;
}
Expand description

A result of transaction execution.

Required Associated Types§

type HaltReason: Send + 'static

Halt reason.

Required Methods§

fn result(&self) -> &ExecResultAndState<ExecutionResult<Self::HaltReason>>

Returns the inner EVM result.

fn into_result(self) -> ExecResultAndState<ExecutionResult<Self::HaltReason>>

Consumes self and returns the inner EVM result.

Implementors§

§

impl<H, T> TxResult for EthTxResult<H, T>
where H: Send + 'static, T: Send + 'static,

§

type HaltReason = H