Enum cfx_vm_types::InstructionResult
source · 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> 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