Struct wasmedge_sys::plugin::Plugin
source · pub struct Plugin { /* private fields */ }
Expand description
Represents a loaded plugin. It provides the APIs for accessing the plugin.
Implementations§
source§impl Plugin
impl Plugin
sourcepub fn mod_names(&self) -> Vec<String>
pub fn mod_names(&self) -> Vec<String>
Returns the names of all module instances in this plugin.
sourcepub fn mod_instance(&self, name: impl AsRef<str>) -> Option<Instance>
pub fn mod_instance(&self, name: impl AsRef<str>) -> Option<Instance>
Returns a module instance that is generated from the module with the given name in this plugin.
Argument
name
- The name of the target module.
sourcepub fn as_ptr(&self) -> *const WasmEdge_PluginContext
pub fn as_ptr(&self) -> *const WasmEdge_PluginContext
Provides a raw pointer to the inner Plugin context.