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§
Source§impl 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 Freeze for InterruptHandle
impl RefUnwindSafe for InterruptHandle
impl Send for InterruptHandle
impl Sync for InterruptHandle
impl Unpin for InterruptHandle
impl UnwindSafe for InterruptHandle
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more