Enum nix::sys::signal::Signal
#[repr(i32)]
#[non_exhaustive]
pub enum Signal {
SIGHUP,
SIGINT,
SIGQUIT,
SIGILL,
SIGTRAP,
SIGABRT,
SIGBUS,
SIGFPE,
SIGKILL,
SIGUSR1,
SIGSEGV,
SIGUSR2,
SIGPIPE,
SIGALRM,
SIGTERM,
SIGSTKFLT,
SIGCHLD,
SIGCONT,
SIGSTOP,
SIGTSTP,
SIGTTIN,
SIGTTOU,
SIGURG,
SIGXCPU,
SIGXFSZ,
SIGVTALRM,
SIGPROF,
SIGWINCH,
SIGIO,
SIGPWR,
SIGSYS,
}Documentation
Types of operating system signals
Variants
SIGHUPHangup
SIGINTInterrupt
SIGQUITQuit
SIGILLIllegal instruction (not reset when caught)
SIGTRAPTrace trap (not reset when caught)
SIGABRTAbort
SIGBUSBus error
SIGFPEFloating point exception
SIGKILLKill (cannot be caught or ignored)
SIGUSR1User defined signal 1
SIGSEGVSegmentation violation
SIGUSR2User defined signal 2
SIGPIPEWrite on a pipe with no one to read it
SIGALRMAlarm clock
SIGTERMSoftware termination signal from kill
SIGSTKFLTStack fault (obsolete)
SIGCHLDTo parent on child stop or exit
SIGCONTContinue a stopped process
SIGSTOPSendable stop signal not from tty
SIGTSTPStop signal from tty
SIGTTINTo readers pgrp upon background tty read
SIGTTOULike TTIN if (tp->t_local<OSTOP)
SIGURGUrgent condition on IO channel
SIGXCPUExceeded CPU time limit
SIGXFSZExceeded file size limit
SIGVTALRMVirtual time alarm
SIGPROFProfiling time alarm
SIGWINCHWindow size changes
SIGIOInput/output possible signal
SIGPWRPower failure imminent.
SIGSYSBad system call
Implementations
impl Signal
pub const fn iterator() -> SignalIterator
Iterate through all signals defined by this OS
Trait Implementations
impl Debug for Signal
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl Display for Signal
fn fmt(&Self, f: &mut fmt::Formatter<'_>) -> fmt::Resultimpl Hash for Signal
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()impl Ord for Signal
fn cmp(&Self, other: &Signal) -> $crate::cmp::Orderingimpl PartialOrd<Signal> for Signal
fn partial_cmp(&Self, other: &Signal) -> $crate::option::Option<$crate::cmp::Ordering>impl StructuralEq for Signalimpl StructuralPartialEq for SignalAuto Trait Implementations
impl RefUnwindSafe for Signalimpl UnwindSafe for SignalBlanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T