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