pub enum Signal {
Show 32 variants
Hangup,
Interrupt,
Quit,
Illegal,
Trap,
Abort,
IOT,
Bus,
FloatingPointException,
Kill,
User1,
Segv,
User2,
Pipe,
Alarm,
Term,
Child,
Continue,
Stop,
TSTP,
TTIN,
TTOU,
Urgent,
XCPU,
XFSZ,
VirtualAlarm,
Profiling,
Winch,
IO,
Poll,
Power,
Sys,
}
Expand description
An enum representing signals on UNIX-like systems.
On non-unix systems, this enum is mostly useless and is only there to keep coherency between the different OSes.
If you want the list of the supported signals on the current system, use
SystemExt::SUPPORTED_SIGNALS
.
Variants§
Hangup
Hangup detected on controlling terminal or death of controlling process.
Interrupt
Interrupt from keyboard.
Quit
Quit from keyboard.
Illegal
Illegal instruction.
Trap
Trace/breakpoint trap.
Abort
Abort signal from C abort function.
IOT
IOT trap. A synonym for SIGABRT.
Bus
Bus error (bad memory access).
FloatingPointException
Floating point exception.
Kill
Kill signal.
User1
User-defined signal 1.
Segv
Invalid memory reference.
User2
User-defined signal 2.
Pipe
Broken pipe: write to pipe with no readers.
Alarm
Timer signal from C alarm function.
Term
Termination signal.
Child
Child stopped or terminated.
Continue
Continue if stopped.
Stop
Stop process.
TSTP
Stop typed at terminal.
TTIN
Terminal input for background process.
TTOU
Terminal output for background process.
Urgent
Urgent condition on socket.
XCPU
CPU time limit exceeded.
XFSZ
File size limit exceeded.
VirtualAlarm
Virtual alarm clock.
Profiling
Profiling time expired.
Winch
Windows resize signal.
IO
I/O now possible.
Poll
Pollable event (Sys V). Synonym for IO
Power
Power failure (System V).
Doesn’t exist on apple systems so will be ignored.
Sys
Bad argument to routine (SVr4).
Trait Implementations§
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)