Struct wasmedge_sys::Store
source · pub struct Store { /* private fields */ }
Expand description
Implementations§
source§impl Store
impl Store
sourcepub fn create() -> WasmEdgeResult<Self>
pub fn create() -> WasmEdgeResult<Self>
sourcepub fn module_len(&self) -> u32
pub fn module_len(&self) -> u32
Returns the length of the registered modules.
sourcepub fn module(&self, name: impl AsRef<str>) -> WasmEdgeResult<Instance>
pub fn module(&self, name: impl AsRef<str>) -> WasmEdgeResult<Instance>
Returns the module instance by the module name.
Argument
name
- The name of the module instance to get.
Error
If fail to find the target module instance, then an error is returned.
sourcepub fn as_ptr(&self) -> *const WasmEdge_StoreContext
Available on crate feature ffi
only.
pub fn as_ptr(&self) -> *const WasmEdge_StoreContext
ffi
only.Provides a raw pointer to the inner Store context.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnwindSafe for Store
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