Enum wasmer::ExportError [−][src]
pub enum ExportError {
IncompatibleType,
Missing(String),
}
Expand description
The ExportError
can happen when trying to get a specific
export Extern
from the Instance
exports.
Examples
Incompatible export type
ⓘ
// This results with an error: `ExportError::IncompatibleType`.
let export = instance.exports.get_function("glob").unwrap();
Missing export
ⓘ
// This results with an error: `ExportError::Missing`.
let export = instance.exports.get_function("unknown").unwrap();
Variants
IncompatibleType
An error than occurs when the exported type and the expected type are incompatible.
Missing(String)
Tuple Fields
0: String
This error arises when an export is missing
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ExportError
impl Send for ExportError
impl Sync for ExportError
impl Unpin for ExportError
impl UnwindSafe for ExportError
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more