Enum Signal
#[repr(i32)]
#[non_exhaustive]
pub enum Signal
Types of operating system signals
Variants
-
SIGHUP = libc::SIGHUP Hangup
-
SIGINT = libc::SIGINT Interrupt
-
SIGQUIT = libc::SIGQUIT Quit
-
SIGILL = libc::SIGILL Illegal instruction (not reset when caught)
-
SIGTRAP = libc::SIGTRAP Trace trap (not reset when caught)
-
SIGABRT = libc::SIGABRT Abort
-
SIGBUS = libc::SIGBUS Bus error
-
SIGFPE = libc::SIGFPE Floating point exception
-
SIGKILL = libc::SIGKILL Kill (cannot be caught or ignored)
-
SIGUSR1 = libc::SIGUSR1 User defined signal 1
-
SIGSEGV = libc::SIGSEGV Segmentation violation
-
SIGUSR2 = libc::SIGUSR2 User defined signal 2
-
SIGPIPE = libc::SIGPIPE Write on a pipe with no one to read it
-
SIGALRM = libc::SIGALRM Alarm clock
-
SIGTERM = libc::SIGTERM Software termination signal from kill
-
SIGSTKFLT = libc::SIGSTKFLT Stack fault (obsolete)
-
SIGCHLD = libc::SIGCHLD To parent on child stop or exit
-
SIGCONT = libc::SIGCONT Continue a stopped process
-
SIGSTOP = libc::SIGSTOP Sendable stop signal not from tty
-
SIGTSTP = libc::SIGTSTP Stop signal from tty
-
SIGTTIN = libc::SIGTTIN To readers pgrp upon background tty read
-
SIGTTOU = libc::SIGTTOU Like TTIN if (tp->t_local<OSTOP)
-
SIGURG = libc::SIGURG Urgent condition on IO channel
-
SIGXCPU = libc::SIGXCPU Exceeded CPU time limit
-
SIGXFSZ = libc::SIGXFSZ Exceeded file size limit
-
SIGVTALRM = libc::SIGVTALRM Virtual time alarm
-
SIGPROF = libc::SIGPROF Profiling time alarm
-
SIGWINCH = libc::SIGWINCH Window size changes
-
SIGIO = libc::SIGIO Input/output possible signal
-
SIGPWR = libc::SIGPWR Power failure imminent.
-
SIGSYS = libc::SIGSYS Bad system call
Implementations
impl Signal
const fn as_str(self) -> &'static strReturns name of signal.
This function is equivalent to
<Signal as AsRef<str>>::as_ref(), with difference that returned string is'staticand not bound toself's lifetime.
impl Signal
const fn iterator() -> SignalIteratorIterate through all signals defined by this OS
Trait Implementations
impl AsRef<str> for Signal
fn as_ref(&self) -> &str
impl BitOr for Signal
type Output = SigSet;fn bitor(self, rhs: Self) -> Self::Output
impl Clone for Signal
fn clone(&self) -> Self
impl Copy for Signal
impl Debug for Signal
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for Signal
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Signal
impl FromStr for Signal
type Err = Errno;fn from_str(s: &str) -> Result<Signal>
impl Hash for Signal
fn hash<__H: Hasher>(&self, state: &mut __H)
impl Ord for Signal
fn cmp(&self, other: &Self) -> Ordering
impl PartialEq for Signal
fn eq(&self, other: &Self) -> bool
impl PartialOrd for Signal
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
impl StructuralPartialEq for Signal
impl TryFrom<i32> for Signal
type Error = Errno;fn try_from(x: i32) -> Result<Self>