#[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,
}aio or signal only.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 Extend<Signal> for SigSet
Available on crate feature signal only.
impl Extend<Signal> for SigSet
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>,
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
Available on crate feature signal only.
impl FromIterator<Signal> for SigSet
signal only.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes
Size for each variant:
SIGHUP: 0 bytesSIGINT: 0 bytesSIGQUIT: 0 bytesSIGILL: 0 bytesSIGTRAP: 0 bytesSIGABRT: 0 bytesSIGBUS: 0 bytesSIGFPE: 0 bytesSIGKILL: 0 bytesSIGUSR1: 0 bytesSIGSEGV: 0 bytesSIGUSR2: 0 bytesSIGPIPE: 0 bytesSIGALRM: 0 bytesSIGTERM: 0 bytesSIGSTKFLT: 0 bytesSIGCHLD: 0 bytesSIGCONT: 0 bytesSIGSTOP: 0 bytesSIGTSTP: 0 bytesSIGTTIN: 0 bytesSIGTTOU: 0 bytesSIGURG: 0 bytesSIGXCPU: 0 bytesSIGXFSZ: 0 bytesSIGVTALRM: 0 bytesSIGPROF: 0 bytesSIGWINCH: 0 bytesSIGIO: 0 bytesSIGPWR: 0 bytesSIGSYS: 0 bytes