Enum wasmedge_sdk::error::WasmEdgeError
source · 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)>
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<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<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<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 PartialEq for WasmEdgeError
impl PartialEq for WasmEdgeError
source§fn eq(&self, other: &WasmEdgeError) -> bool
fn eq(&self, other: &WasmEdgeError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for WasmEdgeError
impl StructuralEq for WasmEdgeError
impl StructuralPartialEq for WasmEdgeError
Auto Trait Implementations§
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