#[non_exhaustive]pub enum Signal {
Interrupt,
Terminate,
Hangup,
Kill,
}Expand description
A signal that a run sends to the processes in its scope.
On Windows every signal ends the child at once: with Scope::Group
it ends the job and every process in it, and with Scope::Child it
ends the child alone. Windows has no graceful step that crumbkit can
send without unsafe code (ADR-0171).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Interrupt
SIGINT, which Ctrl-C sends.
Terminate
SIGTERM, the polite request to end.
Hangup
SIGHUP, which a closed terminal sends.
Kill
SIGKILL, which no process can catch or ignore.
Trait Implementations§
impl Copy for Signal
impl Eq for Signal
impl StructuralPartialEq for Signal
Auto Trait Implementations§
impl Forget for Signal
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