Enum marine_core::MError
source · 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)>
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) -> Self
fn from(source: HostImportError) -> Self
Converts to this type from the input type.
source§impl From<ITInterfaceError> for MError
impl From<ITInterfaceError> for MError
source§fn from(source: ITInterfaceError) -> Self
fn from(source: ITInterfaceError) -> Self
Converts to this type from the input type.
source§impl From<ITParserError> for MError
impl From<ITParserError> for MError
source§fn from(source: ITParserError) -> Self
fn from(source: ITParserError) -> Self
Converts to this type from the input type.
source§impl From<ImportError> for MError
impl From<ImportError> for MError
source§fn from(value: ImportError) -> Self
fn from(value: ImportError) -> Self
Converts to this type from the input type.
source§impl From<InstantiationError> for MError
impl From<InstantiationError> for MError
source§fn from(value: InstantiationError) -> Self
fn from(value: InstantiationError) -> Self
Converts to this type from the input type.
source§impl From<InstructionError> for MError
impl From<InstructionError> for MError
source§fn from(source: InstructionError) -> Self
fn from(source: InstructionError) -> Self
Converts to this type from the input type.
source§impl From<MITInterfacesError> for MError
impl From<MITInterfacesError> for MError
source§fn from(err: MITInterfacesError) -> Self
fn from(err: MITInterfacesError) -> Self
Converts to this type from the input type.
source§impl From<ModuleCreationError> for MError
impl From<ModuleCreationError> for MError
source§fn from(value: ModuleCreationError) -> Self
fn from(value: ModuleCreationError) -> Self
Converts to this type from the input type.
source§impl From<ResolveError> for MError
impl From<ResolveError> for MError
source§fn from(value: ResolveError) -> Self
fn from(value: ResolveError) -> Self
Converts to this type from the input type.
source§impl From<RuntimeError> for MError
impl From<RuntimeError> for MError
source§fn from(value: RuntimeError) -> Self
fn from(value: RuntimeError) -> Self
Converts to this type from the input type.
source§impl From<WasmBackendError> for MError
impl From<WasmBackendError> for MError
source§fn from(source: WasmBackendError) -> Self
fn from(source: WasmBackendError) -> 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§
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§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.