Struct wasmedge_sys::plugin::PluginDescriptor
source · pub struct PluginDescriptor { /* private fields */ }
Expand description
Represents Plugin descriptor for plugins.
Implementations§
source§impl PluginDescriptor
impl PluginDescriptor
pub fn create( name: impl AsRef<str>, desc: impl AsRef<str>, version: PluginVersion ) -> WasmEdgeResult<Self>
pub fn add_module_descriptor( self, name: impl AsRef<str>, desc: impl AsRef<str>, f: Option<ModuleInstanceCreateFn> ) -> 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
Available on crate feature ffi
only.
pub fn as_raw_ptr(&self) -> *const WasmEdge_PluginDescriptor
ffi
only.Returns the raw pointer to the inner WasmEdge_PluginDescriptor
.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for PluginDescriptor
impl !Send for PluginDescriptor
impl !Sync for PluginDescriptor
impl Unpin for PluginDescriptor
impl UnwindSafe for PluginDescriptor
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more