pub enum InstructionResult<Gas> {
    Ok,
    UnusedGas(Gas),
    JumpToPosition(U256),
    JumpToSubroutine(U256),
    ReturnFromSubroutine(usize),
    StopExecutionNeedsReturn {
        gas: Gas,
        init_off: U256,
        init_size: U256,
        apply: bool,
    },
    StopExecution,
    Trap(TrapKind),
}Variants§
Ok
UnusedGas(Gas)
JumpToPosition(U256)
JumpToSubroutine(U256)
ReturnFromSubroutine(usize)
StopExecutionNeedsReturn
StopExecution
Trap(TrapKind)
Trait Implementations§
Source§impl<Gas: Clone> Clone for InstructionResult<Gas>
 
impl<Gas: Clone> Clone for InstructionResult<Gas>
Source§fn clone(&self) -> InstructionResult<Gas>
 
fn clone(&self) -> InstructionResult<Gas>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreAuto Trait Implementations§
impl<Gas> Freeze for InstructionResult<Gas>where
    Gas: Freeze,
impl<Gas> RefUnwindSafe for InstructionResult<Gas>where
    Gas: RefUnwindSafe,
impl<Gas> Send for InstructionResult<Gas>where
    Gas: Send,
impl<Gas> Sync for InstructionResult<Gas>where
    Gas: Sync,
impl<Gas> Unpin for InstructionResult<Gas>where
    Gas: Unpin,
impl<Gas> UnwindSafe for InstructionResult<Gas>where
    Gas: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more