#[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,
}
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 Ord for Signal
impl Ord for Signal
Source§impl PartialOrd for Signal
impl PartialOrd for Signal
impl Copy for Signal
impl Eq for Signal
impl StructuralPartialEq for Signal
Auto Trait Implementations§
impl Freeze for Signal
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