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
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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
clone_to_uninit
)§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
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>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where
F: FnOnce(&Self) -> bool,
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