pub enum InterpreterLoopOutcome {
ExecutionReturned,
OutOfFuel {
required_fuel: NonZeroU64,
},
HostCalled {
func_addr: FuncAddr,
params: Vec<Value>,
hostcode: Hostcode,
},
}Expand description
A non-error outcome of execution of the interpreter loop
Variants§
ExecutionReturned
Execution has returned normally, i.e. the end of the bottom-most function on the stack was reached.
OutOfFuel
Execution was preempted because there was not enough fuel in the
WasmResumable object.
Fields
§
required_fuel: NonZeroU64The amount of fuel required to continue execution at least the next instruction.
HostCalled
Auto Trait Implementations§
impl Freeze for InterpreterLoopOutcome
impl RefUnwindSafe for InterpreterLoopOutcome
impl Send for InterpreterLoopOutcome
impl Sync for InterpreterLoopOutcome
impl Unpin for InterpreterLoopOutcome
impl UnwindSafe for InterpreterLoopOutcome
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