Struct wasmedge_sys::plugin::ModuleDescriptor
source · pub struct ModuleDescriptor { /* private fields */ }
Expand description
Defines the module descriptor for plugins.
Implementations§
source§impl ModuleDescriptor
impl ModuleDescriptor
sourcepub fn create(
name: impl AsRef<str>,
desc: impl AsRef<str>,
f: Option<ModuleInstanceCreateFn>
) -> WasmEdgeResult<Self>
pub fn create( name: impl AsRef<str>, desc: impl AsRef<str>, f: Option<ModuleInstanceCreateFn> ) -> WasmEdgeResult<Self>
Creates a new module descriptor.
sourcepub fn as_raw_ptr(&self) -> *const WasmEdge_ModuleDescriptor
Available on crate feature ffi
only.
pub fn as_raw_ptr(&self) -> *const WasmEdge_ModuleDescriptor
ffi
only.Returns the raw pointer to the inner WasmEdge_ModuleDescriptor
.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ModuleDescriptor
impl !Send for ModuleDescriptor
impl !Sync for ModuleDescriptor
impl Unpin for ModuleDescriptor
impl UnwindSafe for ModuleDescriptor
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