Skip to main content

InstructionExecResult

Type Alias InstructionExecResult 

Source
pub type InstructionExecResult<T = (), E = InstructionResult> = Result<T, E>;
Expand description

Result type returned by instruction implementations.

Ok(()) means the instruction completed normally and execution should continue. Err(result) means execution should halt with the given InstructionResult.

Aliased Type§

pub enum InstructionExecResult<T = (), E = InstructionResult> {
    Ok(T),
    Err(E),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(E)

Contains the error value