pub enum RunMode {
Interpreter,
Jit,
Aot,
}Expand description
Defines the execution mode of the WasmEdge runtime.
Since WasmEdge 0.17.0, the runtime no longer executes the AOT-compiled code embedded in a WASM file by default for safety reasons. The execution mode must be set explicitly to enable the JIT or AOT execution.
Variants§
Interpreter
Executes WASM in the interpreter. AOT-compiled code embedded in a WASM file is ignored. This is the default mode.
Jit
Executes WASM with the just-in-time compiler.
Aot
Executes the AOT-compiled code. This is the only mode that loads AOT
custom sections from a universal WASM file or dlopens a
shared-library WASM artifact.
Trait Implementations§
impl Copy for RunMode
impl Eq for RunMode
impl StructuralPartialEq for RunMode
Auto Trait Implementations§
impl Freeze for RunMode
impl RefUnwindSafe for RunMode
impl Send for RunMode
impl Sync for RunMode
impl Unpin for RunMode
impl UnsafeUnpin for RunMode
impl UnwindSafe for RunMode
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