Enum wasmer_interface_types_fl::errors::InstructionErrorKind [−][src]
pub enum InstructionErrorKind {}Show 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),
The kind of instruction errors.
Variants
The instruction needs to read an invocation input at index index
, but it’s missing.
Show fields
Fields of InvocationInputIsMissing
index: u32
The invocation input index.
ToNative(WasmValueNativeCastError)
Failed to cast from a WIT value to a native value.
Failed to cast from from
to to
.
Read a value from the stack, but it doesn’t have the expected type.
Show fields
Need to read some values from the stack, but it doesn’t contain enough data.
Show fields
Fields of StackIsTooSmall
needed: usize
The number of values that were needed.
The local or import function doesn’t exist.
Show fields
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.
Show fields
Failed to call a local or import function.
Show fields
Fields of LocalOrImportCall
function_name: String
The local or import function name that has been called.
The memory doesn’t exist.
Show fields
Fields of MemoryIsMissing
memory_index: usize
The memory index.
Tried to read out of bounds of the memory.
Show fields
String(FromUtf8Error)
The string contains invalid UTF-8 encoding.
Out of range integral type conversion attempted.
Show fields
Fields of NegativeValue
subject: &'static str
The variable name that triggered the error.
The type doesn’t exist.
Show fields
Fields of TypeIsMissing
type_index: u32
The type index.
The searched by id type doesn’t exist.
Show fields
Fields of RecordTypeByNameIsMissing
record_type_id: u64
The record type name.
CorruptedArray(String)
Corrupted array’s been popped from the stack.
CorruptedRecord(String)
Corrupted record’s been popped from the stack.
Read a type that has an unexpected type.
Show fields
SerdeError(String)
Errors related to Serialization/deserialization of record.
LiError(LiError)
Errors related to lifting/lowering records.
LoError(LoError)
Errors related to incorrect writing to memory.
Trait Implementations
impl Display for InstructionErrorKind
[src]
impl Display for InstructionErrorKind
[src]impl Error for InstructionErrorKind
[src]
impl Error for InstructionErrorKind
[src]impl From<(TryFromIntError, &'static str)> for InstructionErrorKind
[src]
impl From<(TryFromIntError, &'static str)> for InstructionErrorKind
[src]impl From<WasmValueNativeCastError> for InstructionErrorKind
[src]
impl From<WasmValueNativeCastError> for InstructionErrorKind
[src]fn from(source: WasmValueNativeCastError) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for InstructionErrorKind
impl RefUnwindSafe for InstructionErrorKind
impl Send for InstructionErrorKind
impl Send for InstructionErrorKind
impl Sync for InstructionErrorKind
impl Sync for InstructionErrorKind
impl Unpin for InstructionErrorKind
impl Unpin for InstructionErrorKind
impl UnwindSafe for InstructionErrorKind
impl UnwindSafe for InstructionErrorKind