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 Freeze for PluginDescriptor
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