Struct wasmtime::InterruptHandle
source · [−]pub struct InterruptHandle { /* private fields */ }
Expand description
A threadsafe handle used to interrupt instances executing within a
particular Store
.
This structure is created by the Store::interrupt_handle
method.
Implementations
sourceimpl InterruptHandle
impl InterruptHandle
sourcepub fn interrupt(&self)
pub fn interrupt(&self)
Flags that execution within this handle’s original Store
should be
interrupted.
This will not immediately interrupt execution of wasm modules, but
rather it will interrupt wasm execution of loop headers and wasm
execution of function entries. For more information see
Store::interrupt_handle
.
Auto Trait Implementations
impl RefUnwindSafe for InterruptHandle
impl Send for InterruptHandle
impl Sync for InterruptHandle
impl Unpin for InterruptHandle
impl UnwindSafe for InterruptHandle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more