pub struct KeyboardInterrupt;
Expand description
Python hooks SIGINT to instead generate a KeyboardInterrupt exception. So we do the same to try and abort long-running computations and return to Python so that the Python exception can be generated.
Auto Trait Implementations§
impl Freeze for KeyboardInterrupt
impl RefUnwindSafe for KeyboardInterrupt
impl Send for KeyboardInterrupt
impl Sync for KeyboardInterrupt
impl Unpin for KeyboardInterrupt
impl UnwindSafe for KeyboardInterrupt
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