#[repr(C)]pub enum Error {
Show 16 variants
InvalidPointer,
InvalidUtf8String,
SliceConversionFailed(Error),
NotImplemented,
InitializationFailure,
CompilationError(String),
InstantiationFailure(String),
ExecutionError(String),
FunctionNotFound,
AllocationFailure,
FailedToGetTaskInformations(Error),
PoisonedLock,
InvalidModule,
InternalError,
InvalidThreadIdentifier,
Time(Error),
}
Expand description
Comprehensive error types for Virtual Machine operations
This enum covers all possible error conditions that can occur during WASM module lifecycle operations, from loading to execution.
Variants§
InvalidPointer
Invalid pointer provided to a function
InvalidUtf8String
String contains invalid UTF-8 sequences
SliceConversionFailed(Error)
Failed to convert between slice types
NotImplemented
Requested functionality is not yet implemented
InitializationFailure
WASM runtime initialization failed
CompilationError(String)
WASM module compilation failed with detailed error message
InstantiationFailure(String)
WASM module instantiation failed with detailed error message
ExecutionError(String)
WASM function execution failed with detailed error message
FunctionNotFound
Requested function was not found in the module
AllocationFailure
Memory allocation failed
FailedToGetTaskInformations(Error)
Failed to retrieve task information
PoisonedLock
Mutex or lock was poisoned
InvalidModule
Invalid WASM module format or structure
InternalError
Internal runtime error
InvalidThreadIdentifier
Invalid thread identifier provided
Time(Error)
Time-related operation failed