#[repr(i32)]
#[non_exhaustive]
pub enum Signal {
Show 31 variants
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,
}
Expand description
Types of operating system signals
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SIGHUP
Hangup
SIGINT
Interrupt
SIGQUIT
Quit
SIGILL
Illegal instruction (not reset when caught)
SIGTRAP
Trace trap (not reset when caught)
SIGABRT
Abort
SIGBUS
Bus error
SIGFPE
Floating point exception
SIGKILL
Kill (cannot be caught or ignored)
SIGUSR1
User defined signal 1
SIGSEGV
Segmentation violation
SIGUSR2
User defined signal 2
SIGPIPE
Write on a pipe with no one to read it
SIGALRM
Alarm clock
SIGTERM
Software termination signal from kill
SIGSTKFLT
Stack fault (obsolete)
SIGCHLD
To parent on child stop or exit
SIGCONT
Continue a stopped process
SIGSTOP
Sendable stop signal not from tty
SIGTSTP
Stop signal from tty
SIGTTIN
To readers pgrp upon background tty read
SIGTTOU
Like TTIN if (tp->t_local<OSTOP)
SIGURG
Urgent condition on IO channel
SIGXCPU
Exceeded CPU time limit
SIGXFSZ
Exceeded file size limit
SIGVTALRM
Virtual time alarm
SIGPROF
Profiling time alarm
SIGWINCH
Window size changes
SIGIO
Input/output possible signal
SIGPWR
Power failure imminent.
SIGSYS
Bad system call
Implementations§
Trait Implementations§
source§impl Extend<Signal> for SigSet
impl Extend<Signal> for SigSet
source§fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = Signal>,
fn extend<T>(&mut self, iter: T)where T: IntoIterator<Item = Signal>,
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)source§impl FromIterator<Signal> for SigSet
impl FromIterator<Signal> for SigSet
source§impl Ord for Signal
impl Ord for Signal
source§impl PartialEq<Signal> for Signal
impl PartialEq<Signal> for Signal
source§impl PartialOrd<Signal> for Signal
impl PartialOrd<Signal> 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