#[non_exhaustive]#[repr(i32)]pub enum Signal {
Show 31 variants
SIGHUP = 1,
SIGINT = 2,
SIGQUIT = 3,
SIGILL = 4,
SIGTRAP = 5,
SIGABRT = 6,
SIGBUS = 10,
SIGFPE = 8,
SIGKILL = 9,
SIGUSR1 = 30,
SIGSEGV = 11,
SIGUSR2 = 31,
SIGPIPE = 13,
SIGALRM = 14,
SIGTERM = 15,
SIGCHLD = 20,
SIGCONT = 19,
SIGSTOP = 17,
SIGTSTP = 18,
SIGTTIN = 21,
SIGTTOU = 22,
SIGURG = 16,
SIGXCPU = 24,
SIGXFSZ = 25,
SIGVTALRM = 26,
SIGPROF = 27,
SIGWINCH = 28,
SIGIO = 23,
SIGSYS = 12,
SIGEMT = 7,
SIGINFO = 29,
}
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 = 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 = 10
Bus error
SIGFPE = 8
Floating point exception
SIGKILL = 9
Kill (cannot be caught or ignored)
SIGUSR1 = 30
User defined signal 1
SIGSEGV = 11
Segmentation violation
SIGUSR2 = 31
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
SIGCHLD = 20
To parent on child stop or exit
SIGCONT = 19
Continue a stopped process
SIGSTOP = 17
Sendable stop signal not from tty
SIGTSTP = 18
Stop signal from tty
SIGTTIN = 21
To readers pgrp upon background tty read
SIGTTOU = 22
Like TTIN if (tp->t_local<OSTOP)
SIGURG = 16
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 = 23
Input/output possible signal
SIGSYS = 12
Bad system call
SIGEMT = 7
Emulator trap
SIGINFO = 29
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 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
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Signal
impl Eq for Signal
impl StructuralPartialEq for Signal
Auto Trait Implementations§
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin 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