Enum signal

Source
#[non_exhaustive]
#[repr(u8)]
pub enum signal {
Show 26 variants ABRT = 1, ALRM = 2, BUS = 3, CHLD = 4, CONT = 5, FPE = 6, HUP = 7, ILL = 8, INT = 9, KILL = 10, PIPE = 11, QUIT = 12, SEGV = 13, STOP = 14, SYS = 15, TERM = 16, TRAP = 17, TSTP = 18, TTIN = 19, TTOU = 20, URG = 21, USR1 = 22, USR2 = 23, VTALRM = 24, XCPU = 25, XFSZ = 26,
}
Expand description

Signal condition.

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.
§

ABRT = 1

Process abort signal.

Action: Terminates the process.

§

ALRM = 2

Alarm clock.

Action: Terminates the process.

§

BUS = 3

Access to an undefined portion of a memory object.

Action: Terminates the process.

§

CHLD = 4

Child process terminated, stopped, or continued.

Action: Ignored.

§

CONT = 5

Continue executing, if stopped.

Action: Continues executing, if stopped.

§

FPE = 6

Erroneous arithmetic operation.

Action: Terminates the process.

§

HUP = 7

Hangup.

Action: Terminates the process.

§

ILL = 8

Illegal instruction.

Action: Terminates the process.

§

INT = 9

Terminate interrupt signal.

Action: Terminates the process.

§

KILL = 10

Kill.

Action: Terminates the process.

§

PIPE = 11

Write on a pipe with no one to read it.

Action: Ignored.

§

QUIT = 12

Terminal quit signal.

Action: Terminates the process.

§

SEGV = 13

Invalid memory reference.

Action: Terminates the process.

§

STOP = 14

Stop executing.

Action: Stops executing.

§

SYS = 15

Bad system call.

Action: Terminates the process.

§

TERM = 16

Termination signal.

Action: Terminates the process.

§

TRAP = 17

Trace/breakpoint trap.

Action: Terminates the process.

§

TSTP = 18

Terminal stop signal.

Action: Stops executing.

§

TTIN = 19

Background process attempting read.

Action: Stops executing.

§

TTOU = 20

Background process attempting write.

Action: Stops executing.

§

URG = 21

High bandwidth data is available at a socket.

Action: Ignored.

§

USR1 = 22

User-defined signal 1.

Action: Terminates the process.

§

USR2 = 23

User-defined signal 2.

Action: Terminates the process.

§

VTALRM = 24

Virtual timer expired.

Action: Terminates the process.

§

XCPU = 25

CPU time limit exceeded.

Action: Terminates the process.

§

XFSZ = 26

File size limit exceeded.

Action: Terminates the process.

Trait Implementations§

Source§

impl Clone for signal

Source§

fn clone(&self) -> signal

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for signal

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for signal

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for signal

Source§

fn eq(&self, other: &signal) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for signal

Source§

impl Eq for signal

Source§

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§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.