pub struct InterruptHandle { /* private fields */ }Expand description
The token to interrupt a run from another thread (spec/host/01-execution.md, 1.9a).
Cloning it gives another handle to the same token, so one token can stop many VMs. An interrupt stays requested until
InterruptHandle::reset is called.
Implementations§
Source§impl InterruptHandle
impl InterruptHandle
Sourcepub fn interrupt(&self)
pub fn interrupt(&self)
Requests an interrupt. The VMs that watch this token return Interrupted at their next check point.
Sourcepub fn is_interrupted(&self) -> bool
pub fn is_interrupted(&self) -> bool
Whether an interrupt is requested.
Trait Implementations§
Source§impl Clone for InterruptHandle
impl Clone for InterruptHandle
Source§impl Debug for InterruptHandle
impl Debug for InterruptHandle
Auto Trait Implementations§
impl Forget for InterruptHandle
impl Freeze for InterruptHandle
impl Move for InterruptHandle
impl RefUnwindSafe for InterruptHandle
impl Send for InterruptHandle
impl Sync for InterruptHandle
impl Unpin for InterruptHandle
impl UnsafeUnpin 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