Enum nix::sys::signal::Signal

#[repr(i32)]
#[non_exhaustive]
pub enum Signal {    
    SIGHUP,
    SIGINT,
    SIGQUIT,
    SIGILL,
    SIGTRAP,
    SIGABRT,
    SIGBUS,
    SIGFPE,
    SIGKILL,
    SIGUSR1,
    SIGSEGV,
    SIGUSR2,
    SIGPIPE,
    SIGALRM,
    SIGTERM,
    SIGSTKFLT,
    SIGCHLD,
    SIGCONT,
    SIGSTOP,
    SIGTSTP,
    SIGTTIN,
    SIGTTOU,
    SIGURG,
    SIGXCPU,
    SIGXFSZ,
    SIGVTALRM,
    SIGPROF,
    SIGWINCH,
    SIGIO,
    SIGPWR,
    SIGSYS,
}
Documentation

Types of operating system signals

Variants

SIGHUP

Hangup

SIGINT

Interrupt

SIGQUIT

Quit

SIGILL

Illegal instruction (not reset when caught)

SIGTRAP

Trace trap (not reset when caught)

SIGABRT

Abort

SIGBUS

Bus error

SIGFPE

Floating point exception

SIGKILL

Kill (cannot be caught or ignored)

SIGUSR1

User defined signal 1

SIGSEGV

Segmentation violation

SIGUSR2

User defined signal 2

SIGPIPE

Write on a pipe with no one to read it

SIGALRM

Alarm clock

SIGTERM

Software termination signal from kill

SIGSTKFLT

Stack fault (obsolete)

SIGCHLD

To parent on child stop or exit

SIGCONT

Continue a stopped process

SIGSTOP

Sendable stop signal not from tty

SIGTSTP

Stop signal from tty

SIGTTIN

To readers pgrp upon background tty read

SIGTTOU

Like TTIN if (tp->t_local&LTOSTOP)

SIGURG

Urgent condition on IO channel

SIGXCPU

Exceeded CPU time limit

SIGXFSZ

Exceeded file size limit

SIGVTALRM

Virtual time alarm

SIGPROF

Profiling time alarm

SIGWINCH

Window size changes

SIGIO

Input/output possible signal

SIGPWR

Power failure imminent.

SIGSYS

Bad system call

Implementations

impl Signal
pub const fn as_str(Self) -> &'static str

Returns name of signal.

This function is equivalent to <Signal as AsRef<str>>::as_ref(), with difference that returned string is 'static and not bound to self’s lifetime.

impl Signal
pub const fn iterator() -> SignalIterator

Iterate through all signals defined by this OS

Trait Implementations

impl AsRef<str> for Signal
fn as_ref(&Self) -> &str
impl Clone for Signal
fn clone(&Self) -> Signal
impl Copy for Signal
impl Debug for Signal
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Display for Signal
fn fmt(&Self, f: &mut fmt::Formatter<'_>) -> fmt::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: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()
impl Ord for Signal
fn cmp(&Self, other: &Signal) -> $crate::cmp::Ordering
impl PartialEq<Signal> for Signal
fn eq(&Self, other: &Signal) -> bool
impl StructuralEq for Signal
impl TryFrom<i32> for Signal
type Error = Errno
fn try_from(x: i32) -> $crate::Result<Self>

Auto Trait Implementations

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 T
where
    T: 'static + ?Sized,
fn type_id(&Self) -> TypeId
impl<T> Borrow<T> for T
where
    T: ?Sized,
fn borrow(&Self) -> &T
impl<T> BorrowMut<T> for T
where
    T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T
impl<T> From<T> for T
fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for T
where
    U: From<T>,
fn into(Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl<T> ToOwned for T
where
    T: Clone,
type Owned = T
fn to_owned(&Self) -> T
fn clone_into(&Self, target: &mut T)
impl<T> ToString for T
where
    T: Display + ?Sized,
fn to_string(&Self) -> String
impl<T, U> TryFrom<U> for T
where
    U: Into<T>,
type Error = Infallible
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for T
where
    U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
fn try_into(Self) -> Result<U, <U as TryFrom<T>>::Error>