Enum holochain_wasmer_host::prelude::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
An error than occurs when the exported type and the expected type are incompatible.
Missing(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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V