pub enum MError {
Show 18 variants
ResolveError(ResolveError),
WasmerInvokeError(String),
WasmerCreationError(CreationError),
WasmerCompileError(CompileError),
WasmerRuntimeError(String),
WasmerLinkError(LinkError),
WasmerError(String),
RecordResolveError(String),
WASIPrepareError(String),
ModuleInterfaceError(ITInterfaceError),
ITInstructionError(InstructionError),
PrepareError(PrepareError),
NonUniqueModuleName(String),
NoSuchFunction(String, String),
NoSuchModule(String),
HostImportError(HostImportError),
WITParseError(ITParserError),
IncorrectWIT(String),
}Variants
ResolveError(ResolveError)
This error type is produced by Wasmer during resolving a Wasm function.
WasmerInvokeError(String)
Error related to calling a main Wasm module.
WasmerCreationError(CreationError)
Error that raises during compilation Wasm code by Wasmer.
WasmerCompileError(CompileError)
Error that raises during creation of some Wasm objects (like table and memory) by Wasmer.
WasmerRuntimeError(String)
Errors arisen during execution of a Wasm module.
WasmerLinkError(LinkError)
Errors arisen during linking Wasm modules with already loaded into Marine modules.
WasmerError(String)
Errors from the temporary class of amalgamation errors from the Wasmer side.
RecordResolveError(String)
Errors related to failed resolving of records.
WASIPrepareError(String)
Errors arisen during creation of a WASI context.
ModuleInterfaceError(ITInterfaceError)
Errors occurred inside marine-module-interface crate.
ITInstructionError(InstructionError)
Error arisen during execution of Wasm modules (especially, interface types).
PrepareError(PrepareError)
Error that raises on the preparation step.
NonUniqueModuleName(String)
Indicates that there is already a module with such name.
NoSuchFunction(String, String)
Returns when there is no module with such name.
NoSuchModule(String)
Returns when there is no module with such name.
HostImportError(HostImportError)
An error occurred when host functions tries to lift IValues from WValues and lowering back.
WITParseError(ITParserError)
IT section parse error.
IncorrectWIT(String)
Incorrect IT section.
Trait Implementations
sourceimpl Error for MError
impl Error for MError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<CompileError> for MError
impl From<CompileError> for MError
sourcefn from(source: CompileError) -> Self
fn from(source: CompileError) -> Self
Converts to this type from the input type.
sourceimpl From<CreationError> for MError
impl From<CreationError> for MError
sourcefn from(source: CreationError) -> Self
fn from(source: CreationError) -> Self
Converts to this type from the input type.
sourceimpl From<HostImportError> for MError
impl From<HostImportError> for MError
sourcefn from(source: HostImportError) -> Self
fn from(source: HostImportError) -> Self
Converts to this type from the input type.
sourceimpl From<ITInterfaceError> for MError
impl From<ITInterfaceError> for MError
sourcefn from(source: ITInterfaceError) -> Self
fn from(source: ITInterfaceError) -> Self
Converts to this type from the input type.
sourceimpl From<ITParserError> for MError
impl From<ITParserError> for MError
sourcefn from(source: ITParserError) -> Self
fn from(source: ITParserError) -> Self
Converts to this type from the input type.
sourceimpl From<InstructionError> for MError
impl From<InstructionError> for MError
sourcefn from(source: InstructionError) -> Self
fn from(source: InstructionError) -> Self
Converts to this type from the input type.
sourceimpl From<InvokeError> for MError
impl From<InvokeError> for MError
sourcefn from(err: InvokeError) -> Self
fn from(err: InvokeError) -> Self
Converts to this type from the input type.
sourceimpl From<MITInterfacesError> for MError
impl From<MITInterfacesError> for MError
sourcefn from(err: MITInterfacesError) -> Self
fn from(err: MITInterfacesError) -> Self
Converts to this type from the input type.
sourceimpl From<ResolveError> for MError
impl From<ResolveError> for MError
sourcefn from(source: ResolveError) -> Self
fn from(source: ResolveError) -> Self
Converts to this type from the input type.
sourceimpl From<RuntimeError> for MError
impl From<RuntimeError> for MError
sourcefn from(err: RuntimeError) -> Self
fn from(err: RuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for MError
impl Send for MError
impl Sync for MError
impl Unpin for MError
impl !UnwindSafe for MError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more