Enum wasmedge_sys::instance::module::WasiInstance
source · pub enum WasiInstance {
AsyncWasi(AsyncWasiModule),
}
Expand description
Defines three types of module instances that can be imported into a WasmEdge Store instance.
Variants§
AsyncWasi(AsyncWasiModule)
Available on crate feature
async
and Linux only.Defines the import module instance of AsyncWasiModule type.
Implementations§
source§impl WasiInstance
impl WasiInstance
sourcepub fn as_raw_ptr(&self) -> *const WasmEdge_ModuleInstanceContext
Available on crate feature ffi
only.
pub fn as_raw_ptr(&self) -> *const WasmEdge_ModuleInstanceContext
ffi
only.Returns the raw pointer to the inner WasmEdge_ModuleInstanceContext
.
Trait Implementations§
source§impl Clone for WasiInstance
impl Clone for WasiInstance
source§fn clone(&self) -> WasiInstance
fn clone(&self) -> WasiInstance
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for WasiInstance
impl Send for WasiInstance
impl Sync for WasiInstance
impl Unpin for WasiInstance
impl !UnwindSafe for WasiInstance
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