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>
Auto Trait Implementations
impl Freeze for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnsafeUnpin for Signal
impl UnwindSafe for Signal
Blanket Implementations
impl<T> Any for Signal
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Signal
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Signal
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Signal
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Signal
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for Signal
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> ToString for Signal
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for Signal
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Signal
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Signal
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>