Enum marine::MError[][src]

pub enum MError {
Show variants ResolveError(ResolveError), WasmerInvokeError(String), WasmerCreationError(CreationError), WasmerCompileError(CompileError), WasmerRuntimeError(String), WasmerLinkError(LinkError), WasmerError(String), RecordResolveError(String), WASIPrepareError(String), ModuleInterfaceError(ITInterfaceError), ITInstructionError(InstructionError), PrepareError(Error), NonUniqueModuleName(String), NoSuchFunction(StringString), NoSuchModule(String), HostImportError(HostImportError), WITParseError(ITParserError), IncorrectWIT(String), ModuleVersionParseError(ModuleInfoError), ModuleWithoutVersion(String), IncompatibleSDKVersions { module_name: String, required: Version, provided: Version, }, IncompatibleITVersions { module_name: String, required: Version, provided: Version, },
}

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(Error)

Error that raises on the preparation step.

NonUniqueModuleName(String)

Indicates that there is already a module with such name.

NoSuchFunction(StringString)

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.

ModuleVersionParseError(ModuleInfoError)

Error is encountered while parsing module version.

ModuleWithoutVersion(String)

Provided module doesn’t contain a sdk version that is necessary.

IncompatibleSDKVersions

Module sdk versions are incompatible.

Show fields

Fields of IncompatibleSDKVersions

module_name: Stringrequired: Versionprovided: Version
IncompatibleITVersions

Module IT versions are incompatible.

Show fields

Fields of IncompatibleITVersions

module_name: Stringrequired: Versionprovided: Version

Trait Implementations

impl Debug for MError[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Display for MError[src]

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Error for MError[src]

fn source(&self) -> Option<&(dyn Error + 'static)>[src]

The lower-level source of this error, if any. Read more

fn backtrace(&self) -> Option<&Backtrace>[src]

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

fn description(&self) -> &str1.0.0[src]

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

fn cause(&self) -> Option<&dyn Error>1.0.0[src]

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

impl From<()> for MError[src]

fn from(_err: ()) -> Self[src]

Performs the conversion.

impl From<CompileError> for MError[src]

fn from(source: CompileError) -> Self[src]

Performs the conversion.

impl From<CreationError> for MError[src]

fn from(source: CreationError) -> Self[src]

Performs the conversion.

impl From<Error> for MError[src]

fn from(source: Error) -> Self[src]

Performs the conversion.

impl From<Error> for MError[src]

fn from(err: Error) -> Self[src]

Performs the conversion.

impl From<HostImportError> for MError[src]

fn from(source: HostImportError) -> Self[src]

Performs the conversion.

impl From<ITInterfaceError> for MError[src]

fn from(source: ITInterfaceError) -> Self[src]

Performs the conversion.

impl From<ITParserError> for MError[src]

fn from(source: ITParserError) -> Self[src]

Performs the conversion.

impl From<InstructionError> for MError[src]

fn from(source: InstructionError) -> Self[src]

Performs the conversion.

impl From<InvokeError> for MError[src]

fn from(err: InvokeError) -> Self[src]

Performs the conversion.

impl From<LinkError> for MError[src]

fn from(source: LinkError) -> Self[src]

Performs the conversion.

impl From<MITInterfacesError> for MError[src]

fn from(err: MITInterfacesError) -> Self[src]

Performs the conversion.

impl From<ModuleInfoError> for MError[src]

fn from(source: ModuleInfoError) -> Self[src]

Performs the conversion.

impl From<ResolveError> for MError[src]

fn from(source: ResolveError) -> Self[src]

Performs the conversion.

impl From<RuntimeError> for MError[src]

fn from(err: RuntimeError) -> Self[src]

Performs the conversion.

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> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.