#[repr(C)]pub enum Signal {
Show 31 variants
Hangup = 1,
Interrupt = 2,
Quit = 3,
Illegal = 4,
Trap = 5,
Abort = 6,
Bus = 7,
FloatingPointException = 8,
Kill = 9,
User1 = 10,
Segv = 11,
User2 = 12,
Pipe = 13,
Alarm = 14,
Term = 15,
Stklft = 16,
Child = 17,
Continue = 18,
Stop = 19,
TSTP = 20,
TTIN = 21,
TTOU = 22,
Urgent = 23,
XCPU = 24,
XFSZ = 25,
VirtualAlarm = 26,
Profiling = 27,
Winch = 28,
IO = 29,
Power = 30,
Sys = 31,
}
Expand description
An enum representing signal on UNIX-like systems.
Variants§
Hangup = 1
Hangup detected on controlling terminal or death of controlling process.
Interrupt = 2
Interrupt from keyboard.
Quit = 3
Quit from keyboard.
Illegal = 4
Illegal instruction.
Trap = 5
Trace/breakpoint trap.
Abort = 6
Abort signal from C abort function.
Bus = 7
Bus error (bad memory access).
FloatingPointException = 8
Floating point exception.
Kill = 9
Kill signal.
User1 = 10
User-defined signal 1.
Segv = 11
Invalid memory reference.
User2 = 12
User-defined signal 2.
Pipe = 13
Broken pipe: write to pipe with no readers.
Alarm = 14
Timer signal from C alarm function.
Term = 15
Termination signal.
Stklft = 16
Stack fault on coprocessor (unused).
Child = 17
Child stopped or terminated.
Continue = 18
Continue if stopped.
Stop = 19
Stop process.
TSTP = 20
Stop typed at terminal.
TTIN = 21
Terminal input for background process.
TTOU = 22
Terminal output for background process.
Urgent = 23
Urgent condition on socket.
XCPU = 24
CPU time limit exceeded.
XFSZ = 25
File size limit exceeded.
VirtualAlarm = 26
Virtual alarm clock.
Profiling = 27
Profiling time expired.
Winch = 28
Windows resize signal.
IO = 29
I/O now possible.
Power = 30
Power failure (System V).
Sys = 31
Bad argument to routine (SVr4).
Trait Implementations§
Source§impl PartialOrd for Signal
impl PartialOrd for Signal
impl Copy 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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more