[][src]Enum wasmer_runtime::error::LinkError

pub enum LinkError {
    IncorrectImportType {
        namespace: String,
        name: String,
        expected: String,
        found: String,
    },
    IncorrectImportSignature {
        namespace: String,
        name: String,
        expected: FuncSig,
        found: FuncSig,
    },
    ImportNotFound {
        namespace: String,
        name: String,
    },
    IncorrectMemoryDescriptor {
        namespace: String,
        name: String,
        expected: MemoryDescriptor,
        found: MemoryDescriptor,
    },
    IncorrectTableDescriptor {
        namespace: String,
        name: String,
        expected: TableDescriptor,
        found: TableDescriptor,
    },
    IncorrectGlobalDescriptor {
        namespace: String,
        name: String,
        expected: GlobalDescriptor,
        found: GlobalDescriptor,
    },
    Generic {
        message: String,
    },
}

This is returned when the runtime is unable to correctly link the module with the provided imports.

Comparing two LinkErrors always evaluates to false.

Variants

IncorrectImportType

Fields of IncorrectImportType

namespace: Stringname: Stringexpected: Stringfound: String
IncorrectImportSignature

Fields of IncorrectImportSignature

namespace: Stringname: Stringexpected: FuncSigfound: FuncSig
ImportNotFound

Fields of ImportNotFound

namespace: Stringname: String
IncorrectMemoryDescriptor

Fields of IncorrectMemoryDescriptor

namespace: Stringname: Stringexpected: MemoryDescriptorfound: MemoryDescriptor
IncorrectTableDescriptor

Fields of IncorrectTableDescriptor

namespace: Stringname: Stringexpected: TableDescriptorfound: TableDescriptor
IncorrectGlobalDescriptor

Fields of IncorrectGlobalDescriptor

namespace: Stringname: Stringexpected: GlobalDescriptorfound: GlobalDescriptor
Generic

Fields of Generic

message: String

Trait Implementations

impl PartialEq<LinkError> for LinkError[src]

impl Error for LinkError[src]

impl Clone for LinkError[src]

impl Debug for LinkError[src]

impl Display for LinkError[src]

Auto Trait Implementations

impl Sync for LinkError

impl Send for LinkError

impl Unpin for LinkError

impl UnwindSafe for LinkError

impl RefUnwindSafe for LinkError

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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.

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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[src]