pub enum Signal {
Interrupt,
Terminate,
Hangup,
Quit,
}Expand description
A process signal an application can subscribe to.
A handler is installed only for a signal the application declared, so a signal it did not declare keeps the process’s default disposition.
SIGWINCH is not here: a size change is the Surface source. Nor does
Signal::Interrupt cover Ctrl-C, which under raw mode is an ordinary
key on the Input source; it covers the SIGINT another process sends.
Variants§
Interrupt
SIGINT, sent from outside the terminal.
Terminate
SIGTERM, the ordinary request to terminate.
Hangup
SIGHUP, the terminal that carried this process went away.
Quit
SIGQUIT.
Trait Implementations§
impl Copy for Signal
impl Eq for Signal
impl StructuralPartialEq for Signal
Auto Trait Implementations§
impl Freeze for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnsafeUnpin for Signal
impl UnwindSafe for Signal
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