pub struct InterruptHandle { /* private fields */ }Expand description
Interrupts a runtime’s running script from any thread: the script stops
at its next poll (about every thousand loop back-edges and calls)
with RuntimeError::Interrupted, uncatchable by the script. The flag
stays set until InterruptHandle::clear, so every script after it is
interrupted too.
Implementations§
Trait Implementations§
Source§impl Clone for InterruptHandle
impl Clone for InterruptHandle
Auto Trait Implementations§
impl Freeze 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