[][src]Enum wasmer_runtime_core_fl::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

The type of the provided import does not match the expected type.

Fields of IncorrectImportType

namespace: String

Namespace.

name: String

Name.

expected: String

Expected.

found: String

Found.

IncorrectImportSignature

The signature of the provided import does not match the expected signature.

Fields of IncorrectImportSignature

namespace: String

Namespace.

name: String

Name.

expected: FuncSig

Expected.

found: FuncSig

Found.

ImportNotFound

An expected import was not provided.

Fields of ImportNotFound

namespace: String

Namespace.

name: String

Name.

IncorrectMemoryDescriptor

The memory descriptor provided does not match the expected descriptor.

Fields of IncorrectMemoryDescriptor

namespace: String

Namespace.

name: String

Name.

expected: MemoryDescriptor

Expected.

found: MemoryDescriptor

Found.

IncorrectTableDescriptor

The table descriptor provided does not match the expected descriptor.

Fields of IncorrectTableDescriptor

namespace: String

Namespace.

name: String

Name.

expected: TableDescriptor

Expected.

found: TableDescriptor

Found.

IncorrectGlobalDescriptor

The global descriptor provided does not match the expected descriptor.

Fields of IncorrectGlobalDescriptor

namespace: String

Namespace.

name: String

Name.

expected: GlobalDescriptor

Expected.

found: GlobalDescriptor

Found.

Generic

A generic error with a message.

Fields of Generic

message: String

Error message.

Trait Implementations

impl Clone for LinkError[src]

impl Debug for LinkError[src]

impl Display for LinkError[src]

impl Error for LinkError[src]

impl PartialEq<LinkError> for LinkError[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.