Enum nix::sys::signal::Signal

source ·
#[repr(i32)]
#[non_exhaustive]
pub enum Signal {
Show 31 variants 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,
}
Available on crate features aio or signal only.
Expand description

Types of operating system signals

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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§

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.

Available on crate feature signal only.

Iterate through all signals defined by this OS

Trait Implementations§

Converts this type into a shared reference of the (usually inferred) input type.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Extends a collection with the contents of an iterator. Read more
🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
Creates a value from an iterator. Read more
The associated error which can be returned from parsing.
Parses a string s to return a value of this type. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method returns an Ordering between self and other. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
The type returned in the event of a conversion error.
Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.