pub enum Signal {
Interrupt,
Terminate,
Kill,
}Expand description
Termination or cancellation signal the executor delivers to a
child process during the cancellation flow (EXEC-013,
EXEC-014).
The variants are intentionally limited to the signals the executor actually uses; this is not a full POSIX signal vocabulary.
Variants§
Interrupt
SIGINT, the interactive interrupt (e.g. Ctrl+C). Mapped to
the platform equivalent on non-Unix hosts.
Terminate
SIGTERM, the polite-termination signal. Mapped to the
platform equivalent on non-Unix hosts.
Kill
SIGKILL, the unconditional kill.
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