Skip to main content

IntoInstructionResult

Trait IntoInstructionResult 

pub trait IntoInstructionResult {
    // Required method
    fn into_instruction_result(self) -> InstructionResult;
}
Expand description

Converts a halt reason into an [InstructionResult].

Abstracts over network-specific halt reason types (HaltReason, OpHaltReason) so that anvil code doesn’t need to match on each variant directly. Converts a network-specific halt reason into an [InstructionResult].

Required Methods§

fn into_instruction_result(self) -> InstructionResult

Implementations on Foreign Types§

§

impl IntoInstructionResult for HaltReason

§

fn into_instruction_result(self) -> InstructionResult

§

impl IntoInstructionResult for OpHaltReason

§

fn into_instruction_result(self) -> InstructionResult

§

impl IntoInstructionResult for TempoHaltReason

§

fn into_instruction_result(self) -> InstructionResult

Implementors§