Enum wasmer_interface_types_fl::errors::InstructionErrorKind [−][src]
pub enum InstructionErrorKind {
Show 20 variants
InvocationInputIsMissing {
index: u32,
},
ToNative(WasmValueNativeCastError),
LoweringLifting {
from: IType,
to: IType,
},
InvalidValueOnTheStack {
expected_type: IType,
received_value: IValue,
},
StackIsTooSmall {
needed: usize,
},
LocalOrImportIsMissing {
function_index: u32,
},
LocalOrImportSignatureMismatch {
function_index: u32,
expected: (Vec<IType>, Vec<IType>),
received: (Vec<IType>, Vec<IType>),
},
LocalOrImportCall {
function_name: String,
},
MemoryIsMissing {
memory_index: usize,
},
MemoryOutOfBoundsAccess {
index: usize,
length: usize,
},
String(FromUtf8Error),
NegativeValue {
subject: &'static str,
},
TypeIsMissing {
type_index: u32,
},
RecordTypeByNameIsMissing {
record_type_id: u64,
},
CorruptedArray(String),
CorruptedRecord(String),
InvalidTypeKind {
expected_kind: TypeKind,
received_kind: TypeKind,
},
SerdeError(String),
LiError(LiError),
LoError(LoError),
}
Expand description
The kind of instruction errors.
Variants
The instruction needs to read an invocation input at index index
, but it’s missing.
Fields of InvocationInputIsMissing
index: u32
The invocation input index.
ToNative(WasmValueNativeCastError)
Failed to cast from a WIT value to a native value.
Tuple Fields of ToNative
Failed to cast from from
to to
.
Read a value from the stack, but it doesn’t have the expected type.
Fields of InvalidValueOnTheStack
Need to read some values from the stack, but it doesn’t contain enough data.
Fields of StackIsTooSmall
needed: usize
The number of values that were needed.
The local or import function doesn’t exist.
Fields of LocalOrImportIsMissing
function_index: u32
The local or import function index.
Values given to a local or import function doesn’t match the function signature.
Fields of LocalOrImportSignatureMismatch
Failed to call a local or import function.
Fields of LocalOrImportCall
function_name: String
The local or import function name that has been called.
The memory doesn’t exist.
Fields of MemoryIsMissing
memory_index: usize
The memory index.
Tried to read out of bounds of the memory.
String(FromUtf8Error)
The string contains invalid UTF-8 encoding.
Tuple Fields of String
Out of range integral type conversion attempted.
Fields of NegativeValue
subject: &'static str
The variable name that triggered the error.
The type doesn’t exist.
Fields of TypeIsMissing
type_index: u32
The type index.
The searched by id type doesn’t exist.
Fields of RecordTypeByNameIsMissing
record_type_id: u64
The record type name.
CorruptedArray(String)
Corrupted array’s been popped from the stack.
Tuple Fields of CorruptedArray
0: String
CorruptedRecord(String)
Corrupted record’s been popped from the stack.
Tuple Fields of CorruptedRecord
0: String
Read a type that has an unexpected type.
Fields of InvalidTypeKind
SerdeError(String)
Errors related to Serialization/deserialization of record.
Tuple Fields of SerdeError
0: String
LiError(LiError)
Errors related to lifting/lowering records.
Tuple Fields of LiError
0: LiError
LoError(LoError)
Errors related to incorrect writing to memory.
Tuple Fields of LoError
0: LoError
Trait Implementations
Performs the conversion.