Struct wasmedge_sdk::plugin::PluginDescriptor
source · pub struct PluginDescriptor { /* private fields */ }
Expand description
Represents Plugin descriptor for plugins.
Implementations§
source§impl PluginDescriptor
impl PluginDescriptor
sourcepub fn new(
name: impl AsRef<str>,
desc: impl AsRef<str>,
version: PluginVersion
) -> WasmEdgeResult<Self>
pub fn new(
name: impl AsRef<str>,
desc: impl AsRef<str>,
version: PluginVersion
) -> WasmEdgeResult<Self>
sourcepub fn add_module_descriptor(
self,
name: impl AsRef<str>,
desc: impl AsRef<str>,
f: Option<ModuleInstanceCreateFn>
) -> WasmEdgeResult<Self>
pub fn add_module_descriptor(
self,
name: impl AsRef<str>,
desc: impl AsRef<str>,
f: Option<ModuleInstanceCreateFn>
) -> WasmEdgeResult<Self>
sourcepub fn add_program_option(
self,
name: impl AsRef<str>,
desc: impl AsRef<str>,
ty: ProgramOptionType
) -> WasmEdgeResult<Self>
pub fn add_program_option(
self,
name: impl AsRef<str>,
desc: impl AsRef<str>,
ty: ProgramOptionType
) -> WasmEdgeResult<Self>
sourcepub fn as_raw_ptr(&self) -> *const WasmEdge_PluginDescriptor
pub fn as_raw_ptr(&self) -> *const WasmEdge_PluginDescriptor
Returns the raw pointer to the inner WasmEdge_PluginDescriptor
.