#[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,
SIGCHLD,
SIGCONT,
SIGSTOP,
SIGTSTP,
SIGTTIN,
SIGTTOU,
SIGURG,
SIGXCPU,
SIGXFSZ,
SIGVTALRM,
SIGPROF,
SIGWINCH,
SIGIO,
SIGSYS,
SIGEMT,
SIGINFO,
}
Available on crate features
aio
or signal
only.Expand description
Types of operating system signals
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.
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
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
SIGSYS
Bad system call
SIGEMT
Emulator trap
SIGINFO
Information request
Implementations§
Trait Implementations§
source§impl Extend<Signal> for SigSet
Available on crate feature signal
only.
impl Extend<Signal> for SigSet
Available on crate feature
signal
only.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>,
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl FromIterator<Signal> for SigSet
Available on crate feature signal
only.
impl FromIterator<Signal> for SigSet
Available on crate feature
signal
only.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
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more