Struct wiggle::wasmtime_crate::ImportType [−][src]
pub struct ImportType<'module> { /* fields omitted */ }
Expand description
A descriptor for an imported value into a wasm module.
This type is primarily accessed from the
Module::imports
API. Each ImportType
describes an import into the wasm module with the module/name that it’s
imported from as well as the type of item that’s being imported.
Implementations
Returns the module name that this import is expected to come from.
Returns the field name of the module that this import is expected to come from.
Note that this is optional due to the module linking proposal. If the
module linking proposal is enabled this is always None
, otherwise this
is always Some
.
Returns the expected type of this import.
Trait Implementations
Auto Trait Implementations
impl<'module> RefUnwindSafe for ImportType<'module>
impl<'module> Send for ImportType<'module>
impl<'module> Sync for ImportType<'module>
impl<'module> Unpin for ImportType<'module>
impl<'module> UnwindSafe for ImportType<'module>
Blanket Implementations
Mutably borrows from an owned value. Read more
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