pub struct Instance(/* private fields */);Expand description
An instantiated WebAssembly component.
Implementations§
Source§impl Instance
impl Instance
Sourcepub fn drop<T, E: WasmEngine>(
&self,
ctx: &mut Store<T, E>,
) -> Result<Vec<Error>>
pub fn drop<T, E: WasmEngine>( &self, ctx: &mut Store<T, E>, ) -> Result<Vec<Error>>
Drops the instance and all of its owned resources, removing its data from the given store. Returns the list of errors that occurred while dropping owned resources, but continues until all resources have been dropped.
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