#[repr(u8)]pub enum Signal_type {
Show 31 variants
Hangup = 0,
Interrupt = 1,
Quit = 2,
Illegal_instruction = 3,
Trap = 4,
Abort = 5,
Bus_error = 6,
Floating_point_exception = 7,
Kill = 8,
User_1 = 9,
Segmentation_fault = 10,
User_2 = 11,
Broken_pipe = 12,
Alarm = 13,
Termination = 14,
Stack_fault = 15,
Child = 16,
Continue = 17,
Stop = 18,
Terminal_stop = 19,
Terminal_input = 20,
Terminal_output = 21,
Urgent = 22,
Cpu_time_limit_exceeded = 23,
File_size_limit_exceeded = 24,
Virtual_alarm = 25,
Profiling_timer_expired = 26,
Window_resize = 27,
IO_Possible = 28,
Power_failure = 29,
Bad_system_call = 30,
}
Expand description
POSIX signals enumeration
Variants§
Hangup = 0
Hangup detected on controlling terminal or death of controlling process (SIGHUP)
Interrupt = 1
Interrupt from keyboard (SIGINT)
Quit = 2
Quit from keyboard (SIGQUIT)
Illegal_instruction = 3
Unused : Illegal Instruction (SIGILL)
Trap = 4
Trace/breakpoint trap (SIGTRAP)
Abort = 5
Abort signal from abort(3) (SIGABRT)
Bus_error = 6
Bus error (bad memory access) (SIGBUS)
Floating_point_exception = 7
Floating-point exception (SIGFPE)
Kill = 8
Kill signal (SIGKILL)
User_1 = 9
User-defined signal 1 (SIGUSR1)
Segmentation_fault = 10
Invalid memory reference (SIGSEGV)
User_2 = 11
User-defined signal 2 (SIGUSR2)
Broken_pipe = 12
Broken pipe: write to pipe with no readers (SIGPIPE)
Alarm = 13
Timer signal from alarm(2) (SIGALRM)
Termination = 14
Termination signal (SIGTERM)
Stack_fault = 15
Stack fault on coprocessor (unused) (SIGSTKFLT)
Child = 16
Child stopped or terminated (SIGCHLD)
Continue = 17
Continue if stopped (SIGCONT)
Stop = 18
Stop process (SIGSTOP)
Terminal_stop = 19
Stop typed at terminal (SIGTSTP)
Terminal_input = 20
Terminal input for background process (SIGTTIN)
Terminal_output = 21
Terminal output for background process (SIGTTOU)
Urgent = 22
Urgent condition on socket (4.2BSD) (SIGURG)
Cpu_time_limit_exceeded = 23
CPU time limit exceeded (4.2BSD) (SIGXCPU)
File_size_limit_exceeded = 24
File size limit exceeded (4.2BSD) (SIGXFSZ)
Virtual_alarm = 25
Virtual alarm clock (4.2BSD) (SIGVTALRM)
Profiling_timer_expired = 26
Profiling timer expired (SIGPROF)
Window_resize = 27
Window resize signal (4.3BSD, Sun) (SIGWINCH)
IO_Possible = 28
I/O now possible (4.2BSD) (SIGIO)
Power_failure = 29
Power failure (System V) (SIGPWR)
Bad_system_call = 30
Bad system call (SVr4) (SIGSYS)
Implementations§
Source§impl Signal_type
impl Signal_type
Trait Implementations§
Source§impl Clone for Signal_type
impl Clone for Signal_type
Source§fn clone(&self) -> Signal_type
fn clone(&self) -> Signal_type
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more