pub enum MError {
RecordResolveError(String),
WASIPrepareError(WasiError),
ModuleInterfaceError(ITInterfaceError),
ITInstructionError(InstructionError),
PrepareError(PrepareError),
NonUniqueModuleName(String),
NoSuchFunction(String, String),
NoSuchModule(String),
HostImportError(HostImportError),
WITParseError(ITParserError),
IncorrectWIT(String),
WasmBackendError(WasmBackendError),
}
Variants§
RecordResolveError(String)
Errors related to failed resolving of records.
WASIPrepareError(WasiError)
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.
WasmBackendError(WasmBackendError)
Trait Implementations§
Source§impl Error for MError
impl Error for MError
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<HostImportError> for MError
impl From<HostImportError> for MError
Source§fn from(source: HostImportError) -> MError
fn from(source: HostImportError) -> MError
Converts to this type from the input type.
Source§impl From<ITInterfaceError> for MError
impl From<ITInterfaceError> for MError
Source§fn from(source: ITInterfaceError) -> MError
fn from(source: ITInterfaceError) -> MError
Converts to this type from the input type.
Source§impl From<ITParserError> for MError
impl From<ITParserError> for MError
Source§fn from(source: ITParserError) -> MError
fn from(source: ITParserError) -> MError
Converts to this type from the input type.
Source§impl From<ImportError> for MError
impl From<ImportError> for MError
Source§fn from(value: ImportError) -> MError
fn from(value: ImportError) -> MError
Converts to this type from the input type.
Source§impl From<InstantiationError> for MError
impl From<InstantiationError> for MError
Source§fn from(value: InstantiationError) -> MError
fn from(value: InstantiationError) -> MError
Converts to this type from the input type.
Source§impl From<InstructionError> for MError
impl From<InstructionError> for MError
Source§fn from(source: InstructionError) -> MError
fn from(source: InstructionError) -> MError
Converts to this type from the input type.
Source§impl From<MError> for MarineError
impl From<MError> for MarineError
Source§fn from(source: MError) -> MarineError
fn from(source: MError) -> MarineError
Converts to this type from the input type.
Source§impl From<MITInterfacesError> for MError
impl From<MITInterfacesError> for MError
Source§fn from(err: MITInterfacesError) -> MError
fn from(err: MITInterfacesError) -> MError
Converts to this type from the input type.
Source§impl From<ModuleCreationError> for MError
impl From<ModuleCreationError> for MError
Source§fn from(value: ModuleCreationError) -> MError
fn from(value: ModuleCreationError) -> MError
Converts to this type from the input type.
Source§impl From<ResolveError> for MError
impl From<ResolveError> for MError
Source§fn from(value: ResolveError) -> MError
fn from(value: ResolveError) -> MError
Converts to this type from the input type.
Source§impl From<RuntimeError> for MError
impl From<RuntimeError> for MError
Source§fn from(value: RuntimeError) -> MError
fn from(value: RuntimeError) -> MError
Converts to this type from the input type.
Source§impl From<WasmBackendError> for MError
impl From<WasmBackendError> for MError
Source§fn from(source: WasmBackendError) -> MError
fn from(source: WasmBackendError) -> MError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MError
impl !RefUnwindSafe for MError
impl Send for MError
impl Sync for MError
impl Unpin for MError
impl !UnwindSafe for MError
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
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self
file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more