#[non_exhaustive]#[repr(i32)]pub enum Signal {
Show 31 variants
SIGHUP = 1,
SIGINT = 2,
SIGQUIT = 3,
SIGILL = 4,
SIGTRAP = 5,
SIGABRT = 6,
SIGBUS = 7,
SIGFPE = 8,
SIGKILL = 9,
SIGUSR1 = 10,
SIGSEGV = 11,
SIGUSR2 = 12,
SIGPIPE = 13,
SIGALRM = 14,
SIGTERM = 15,
SIGSTKFLT = 16,
SIGCHLD = 17,
SIGCONT = 18,
SIGSTOP = 19,
SIGTSTP = 20,
SIGTTIN = 21,
SIGTTOU = 22,
SIGURG = 23,
SIGXCPU = 24,
SIGXFSZ = 25,
SIGVTALRM = 26,
SIGPROF = 27,
SIGWINCH = 28,
SIGIO = 29,
SIGPWR = 30,
SIGSYS = 31,
}
Expand description
Types of operating system signals
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SIGHUP = 1
Hangup
SIGINT = 2
Interrupt
SIGQUIT = 3
Quit
SIGILL = 4
Illegal instruction (not reset when caught)
SIGTRAP = 5
Trace trap (not reset when caught)
SIGABRT = 6
Abort
SIGBUS = 7
Bus error
SIGFPE = 8
Floating point exception
SIGKILL = 9
Kill (cannot be caught or ignored)
SIGUSR1 = 10
User defined signal 1
SIGSEGV = 11
Segmentation violation
SIGUSR2 = 12
User defined signal 2
SIGPIPE = 13
Write on a pipe with no one to read it
SIGALRM = 14
Alarm clock
SIGTERM = 15
Software termination signal from kill
SIGSTKFLT = 16
Stack fault (obsolete)
SIGCHLD = 17
To parent on child stop or exit
SIGCONT = 18
Continue a stopped process
SIGSTOP = 19
Sendable stop signal not from tty
SIGTSTP = 20
Stop signal from tty
SIGTTIN = 21
To readers pgrp upon background tty read
SIGTTOU = 22
Like TTIN if (tp->t_local<OSTOP)
SIGURG = 23
Urgent condition on IO channel
SIGXCPU = 24
Exceeded CPU time limit
SIGXFSZ = 25
Exceeded file size limit
SIGVTALRM = 26
Virtual time alarm
SIGPROF = 27
Profiling time alarm
SIGWINCH = 28
Window size changes
SIGIO = 29
Input/output possible signal
SIGPWR = 30
Power failure imminent.
SIGSYS = 31
Bad system call
Implementations§
Trait Implementations§
source§impl Ord for Signal
impl Ord for Signal
source§impl PartialEq for Signal
impl PartialEq for Signal
source§impl PartialOrd for Signal
impl PartialOrd for Signal
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more