#[repr(i32)]pub enum Signal {
Show 31 variants
Hup = 1,
Int = 2,
Quit = 3,
Ill = 4,
Trap = 5,
Abort = 6,
Bus = 7,
Fpe = 8,
Kill = 9,
Usr1 = 10,
Segv = 11,
Usr2 = 12,
Pipe = 13,
Alarm = 14,
Term = 15,
Stkflt = 16,
Child = 17,
Cont = 18,
Stop = 19,
Tstp = 20,
Ttin = 21,
Ttou = 22,
Urg = 23,
Xcpu = 24,
Xfsz = 25,
Vtalarm = 26,
Prof = 27,
Winch = 28,
Io = 29,
Power = 30,
Sys = 31,
}
Expand description
A signal number for use with kill_process
, kill_process_group
,
and kill_current_process_group
.
Variants§
Hup = 1
SIGHUP
Int = 2
SIGINT
Quit = 3
SIGQUIT
Ill = 4
SIGILL
Trap = 5
SIGTRAP
Abort = 6
SIGABRT
, aka SIGIOT
Bus = 7
SIGBUS
Fpe = 8
SIGFPE
Kill = 9
SIGKILL
Usr1 = 10
SIGUSR1
Segv = 11
SIGSEGV
Usr2 = 12
SIGUSR2
Pipe = 13
SIGPIPE
Alarm = 14
SIGALRM
Term = 15
SIGTERM
Stkflt = 16
SIGSTKFLT
Child = 17
SIGCHLD
Cont = 18
SIGCONT
Stop = 19
SIGSTOP
Tstp = 20
SIGTSTP
Ttin = 21
SIGTTIN
Ttou = 22
SIGTTOU
Urg = 23
SIGURG
Xcpu = 24
SIGXCPU
Xfsz = 25
SIGXFSZ
Vtalarm = 26
SIGVTALRM
Prof = 27
SIGPROF
Winch = 28
SIGWINCH
Io = 29
SIGIO
, aka SIGPOLL
Power = 30
SIGPWR
Sys = 31
SIGSYS
, aka SIGUNUSED
Implementations§
Trait Implementations§
source§impl PartialEq for Signal
impl PartialEq for Signal
impl Copy for Signal
impl Eq for Signal
impl StructuralEq 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