Enum wasmer_runtime_fl::error::LinkError [−][src]
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, }, }
Expand description
This is returned when the runtime is unable to correctly link the module with the provided imports.
Comparing two LinkError
s always evaluates to false.
Variants
The type of the provided import does not match the expected type.
Fields of IncorrectImportType
The signature of the provided import does not match the expected signature.
Fields of IncorrectImportSignature
An expected import was not provided.
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.
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.
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.
A generic error with a message.
Fields of Generic
message: String
Error message.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LinkError
impl UnwindSafe for LinkError
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self