pub enum RuntimeErrorKind {
Show 31 variants
ArityMismatch {
expected: usize,
found: usize,
},
TypeMismatch {
expected: ValType,
found: ValType,
},
Trap(RuntimeTrap),
UninitializedLocal {
local: u32,
},
UninitializedRegister {
reg: Reg,
},
UnknownRegister {
reg: Reg,
},
UnknownExport {
name: String,
},
ExportedFunctionNotLowered {
func: u32,
},
UnknownFunction {
func: u32,
},
UnknownImport {
module: String,
name: String,
},
ImportTypeMismatch {
module: String,
name: String,
},
ReentrantStore,
UnknownInstance {
instance: u32,
},
ResourceLimitExceeded {
what: &'static str,
},
FuelExhausted,
HostError {
message: String,
},
ImportedFunctionCallUnsupported {
func: u32,
},
UnknownMemory {
memory: u32,
},
UnknownDataSegment {
data: u32,
},
UnknownGlobal {
global: u32,
},
UnknownTable {
table: u32,
},
UnknownElem {
elem: u32,
},
UnknownType {
type_idx: u32,
},
ImportedMemoryAccessUnsupported {
memory: u32,
},
ImportedGlobalAccessUnsupported {
global: u32,
},
ImportedTableAccessUnsupported {
table: u32,
},
InvalidConstExpr,
InvalidLaneIndex {
lane: u8,
},
Gpu(GpuError),
MissingStore,
MissingReturn,
}Expand description
Specific runtime execution failures.
Variants§
ArityMismatch
TypeMismatch
Trap(RuntimeTrap)
UninitializedLocal
UninitializedRegister
UnknownRegister
UnknownExport
ExportedFunctionNotLowered
UnknownFunction
UnknownImport
ImportTypeMismatch
ReentrantStore
UnknownInstance
ResourceLimitExceeded
FuelExhausted
The store’s instruction fuel budget ran out (see Store::set_fuel).
HostError
A host function returned a failure (FFI or embedding-layer error).
ImportedFunctionCallUnsupported
UnknownMemory
UnknownDataSegment
UnknownGlobal
UnknownTable
UnknownElem
UnknownType
ImportedMemoryAccessUnsupported
ImportedGlobalAccessUnsupported
ImportedTableAccessUnsupported
InvalidConstExpr
InvalidLaneIndex
Gpu(GpuError)
MissingStore
MissingReturn
Trait Implementations§
Source§impl Clone for RuntimeErrorKind
impl Clone for RuntimeErrorKind
Source§fn clone(&self) -> RuntimeErrorKind
fn clone(&self) -> RuntimeErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeErrorKind
impl Debug for RuntimeErrorKind
impl Eq for RuntimeErrorKind
Source§impl PartialEq for RuntimeErrorKind
impl PartialEq for RuntimeErrorKind
impl StructuralPartialEq for RuntimeErrorKind
Auto Trait Implementations§
impl Freeze for RuntimeErrorKind
impl RefUnwindSafe for RuntimeErrorKind
impl Send for RuntimeErrorKind
impl Sync for RuntimeErrorKind
impl Unpin for RuntimeErrorKind
impl UnsafeUnpin for RuntimeErrorKind
impl UnwindSafe for RuntimeErrorKind
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