Struct wasm_runtime_layer::Instance
source · pub struct Instance { /* private fields */ }
Expand description
Implementations§
source§impl Instance
impl Instance
sourcepub fn new<C: AsContextMut>(
ctx: C,
module: &Module,
imports: &Imports
) -> Result<Self>
pub fn new<C: AsContextMut>( ctx: C, module: &Module, imports: &Imports ) -> Result<Self>
Creates a new Instance
which runs code from the provided module against the given import set.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Instance
impl !RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl !UnwindSafe for Instance
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