pub enum WasmEdgeError {
Show 31 variants
Operation(String),
User(u32),
Core(CoreError),
ImportObjCreate,
ExecutorCreate,
Store(StoreError),
StatisticsCreate,
ModuleCreate,
LoaderCreate,
ConfigCreate,
CompilerCreate,
ValidatorCreate,
Vm(VmError),
Func(FuncError),
FuncTypeCreate,
ExecuteTimeout,
Mem(MemError),
MemTypeCreate,
Global(GlobalError),
GlobalTypeCreate,
Table(TableError),
TableTypeCreate,
Import(ImportError),
Export(ExportError),
Instance(InstanceError),
Plugin(PluginError),
FoundNulByte(NulError),
NotFoundNulByte(FromBytesWithNulError),
Utf8(Utf8Error),
FromUtf8(FromUtf8Error),
WindowsPathConversion(String),
}
Expand description
The error types used by both wasmedge-sys and wasmedge crates.
Variants§
Operation(String)
User(u32)
Core(CoreError)
Errors raised by WasmEdge Core.
ImportObjCreate
ExecutorCreate
Store(StoreError)
StatisticsCreate
ModuleCreate
LoaderCreate
ConfigCreate
CompilerCreate
ValidatorCreate
Vm(VmError)
Func(FuncError)
FuncTypeCreate
ExecuteTimeout
Mem(MemError)
MemTypeCreate
Global(GlobalError)
GlobalTypeCreate
Table(TableError)
TableTypeCreate
Import(ImportError)
Export(ExportError)
Instance(InstanceError)
Plugin(PluginError)
FoundNulByte(NulError)
NotFoundNulByte(FromBytesWithNulError)
Utf8(Utf8Error)
FromUtf8(FromUtf8Error)
WindowsPathConversion(String)
Trait Implementations§
Source§impl Clone for WasmEdgeError
impl Clone for WasmEdgeError
Source§fn clone(&self) -> WasmEdgeError
fn clone(&self) -> WasmEdgeError
Returns a copy of the value. Read more
1.0.0 · 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 WasmEdgeError
impl Debug for WasmEdgeError
Source§impl Display for WasmEdgeError
impl Display for WasmEdgeError
Source§impl Error for WasmEdgeError
impl Error for WasmEdgeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<CoreError> for WasmEdgeError
impl From<CoreError> for WasmEdgeError
Source§fn from(source: CoreError) -> WasmEdgeError
fn from(source: CoreError) -> WasmEdgeError
Converts to this type from the input type.
Source§impl From<ExportError> for WasmEdgeError
impl From<ExportError> for WasmEdgeError
Source§fn from(source: ExportError) -> WasmEdgeError
fn from(source: ExportError) -> WasmEdgeError
Converts to this type from the input type.
Source§impl From<FromBytesWithNulError> for WasmEdgeError
impl From<FromBytesWithNulError> for WasmEdgeError
Source§fn from(source: FromBytesWithNulError) -> WasmEdgeError
fn from(source: FromBytesWithNulError) -> WasmEdgeError
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for WasmEdgeError
impl From<FromUtf8Error> for WasmEdgeError
Source§fn from(source: FromUtf8Error) -> WasmEdgeError
fn from(source: FromUtf8Error) -> WasmEdgeError
Converts to this type from the input type.
Source§impl From<FuncError> for WasmEdgeError
impl From<FuncError> for WasmEdgeError
Source§fn from(source: FuncError) -> WasmEdgeError
fn from(source: FuncError) -> WasmEdgeError
Converts to this type from the input type.
Source§impl From<GlobalError> for WasmEdgeError
impl From<GlobalError> for WasmEdgeError
Source§fn from(source: GlobalError) -> WasmEdgeError
fn from(source: GlobalError) -> WasmEdgeError
Converts to this type from the input type.
Source§impl From<ImportError> for WasmEdgeError
impl From<ImportError> for WasmEdgeError
Source§fn from(source: ImportError) -> WasmEdgeError
fn from(source: ImportError) -> WasmEdgeError
Converts to this type from the input type.
Source§impl From<InstanceError> for WasmEdgeError
impl From<InstanceError> for WasmEdgeError
Source§fn from(source: InstanceError) -> WasmEdgeError
fn from(source: InstanceError) -> WasmEdgeError
Converts to this type from the input type.
Source§impl From<MemError> for WasmEdgeError
impl From<MemError> for WasmEdgeError
Source§fn from(source: MemError) -> WasmEdgeError
fn from(source: MemError) -> WasmEdgeError
Converts to this type from the input type.
Source§impl From<NulError> for WasmEdgeError
impl From<NulError> for WasmEdgeError
Source§fn from(source: NulError) -> WasmEdgeError
fn from(source: NulError) -> WasmEdgeError
Converts to this type from the input type.
Source§impl From<PluginError> for WasmEdgeError
impl From<PluginError> for WasmEdgeError
Source§fn from(source: PluginError) -> WasmEdgeError
fn from(source: PluginError) -> WasmEdgeError
Converts to this type from the input type.
Source§impl From<StoreError> for WasmEdgeError
impl From<StoreError> for WasmEdgeError
Source§fn from(source: StoreError) -> WasmEdgeError
fn from(source: StoreError) -> WasmEdgeError
Converts to this type from the input type.
Source§impl From<TableError> for WasmEdgeError
impl From<TableError> for WasmEdgeError
Source§fn from(source: TableError) -> WasmEdgeError
fn from(source: TableError) -> WasmEdgeError
Converts to this type from the input type.
Source§impl From<Utf8Error> for WasmEdgeError
impl From<Utf8Error> for WasmEdgeError
Source§fn from(source: Utf8Error) -> WasmEdgeError
fn from(source: Utf8Error) -> WasmEdgeError
Converts to this type from the input type.
Source§impl From<VmError> for WasmEdgeError
impl From<VmError> for WasmEdgeError
Source§fn from(source: VmError) -> WasmEdgeError
fn from(source: VmError) -> WasmEdgeError
Converts to this type from the input type.
Source§impl PartialEq for WasmEdgeError
impl PartialEq for WasmEdgeError
impl Eq for WasmEdgeError
impl StructuralPartialEq for WasmEdgeError
Auto Trait Implementations§
impl Freeze for WasmEdgeError
impl RefUnwindSafe for WasmEdgeError
impl Send for WasmEdgeError
impl Sync for WasmEdgeError
impl Unpin for WasmEdgeError
impl UnwindSafe for WasmEdgeError
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