Struct wasmedge_sdk::ImportType
source · pub struct ImportType<'module> { /* private fields */ }
Expand description
Defines the types of the imported instances.
Implementations§
source§impl<'module> ImportType<'module>
impl<'module> ImportType<'module>
sourcepub fn module_name(&self) -> Cow<'_, str>
pub fn module_name(&self) -> Cow<'_, str>
Returns the name of the module hosting the imported WasmEdge instance.
sourcepub fn ty(&self) -> WasmEdgeResult<ExternalInstanceType>
pub fn ty(&self) -> WasmEdgeResult<ExternalInstanceType>
Returns the type of the imported WasmEdge instance, which is one of the types defined in ExternalInstanceType.