Struct wasmedge_sys::Store
source · pub struct Store { /* private fields */ }
Expand description
Implementations§
source§impl Store
impl Store
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
pub fn as_ptr(&self) -> *const WasmEdge_StoreContext
Provides a raw pointer to the inner Store context.