Task

Enum Signal_type

Source
#[repr(u8)]
pub enum Signal_type {
Show 31 variants Hangup = 0, Interrupt = 1, Quit = 2, Illegal_instruction = 3, Trap = 4, Abort = 5, Bus_error = 6, Floating_point_exception = 7, Kill = 8, User_1 = 9, Segmentation_fault = 10, User_2 = 11, Broken_pipe = 12, Alarm = 13, Termination = 14, Stack_fault = 15, Child = 16, Continue = 17, Stop = 18, Terminal_stop = 19, Terminal_input = 20, Terminal_output = 21, Urgent = 22, Cpu_time_limit_exceeded = 23, File_size_limit_exceeded = 24, Virtual_alarm = 25, Profiling_timer_expired = 26, Window_resize = 27, IO_Possible = 28, Power_failure = 29, Bad_system_call = 30,
}
Expand description

POSIX signals enumeration

Variants§

§

Hangup = 0

Hangup detected on controlling terminal or death of controlling process (SIGHUP)

§

Interrupt = 1

Interrupt from keyboard (SIGINT)

§

Quit = 2

Quit from keyboard (SIGQUIT)

§

Illegal_instruction = 3

Unused : Illegal Instruction (SIGILL)

§

Trap = 4

Trace/breakpoint trap (SIGTRAP)

§

Abort = 5

Abort signal from abort(3) (SIGABRT)

§

Bus_error = 6

Bus error (bad memory access) (SIGBUS)

§

Floating_point_exception = 7

Floating-point exception (SIGFPE)

§

Kill = 8

Kill signal (SIGKILL)

§

User_1 = 9

User-defined signal 1 (SIGUSR1)

§

Segmentation_fault = 10

Invalid memory reference (SIGSEGV)

§

User_2 = 11

User-defined signal 2 (SIGUSR2)

§

Broken_pipe = 12

Broken pipe: write to pipe with no readers (SIGPIPE)

§

Alarm = 13

Timer signal from alarm(2) (SIGALRM)

§

Termination = 14

Termination signal (SIGTERM)

§

Stack_fault = 15

Stack fault on coprocessor (unused) (SIGSTKFLT)

§

Child = 16

Child stopped or terminated (SIGCHLD)

§

Continue = 17

Continue if stopped (SIGCONT)

§

Stop = 18

Stop process (SIGSTOP)

§

Terminal_stop = 19

Stop typed at terminal (SIGTSTP)

§

Terminal_input = 20

Terminal input for background process (SIGTTIN)

§

Terminal_output = 21

Terminal output for background process (SIGTTOU)

§

Urgent = 22

Urgent condition on socket (4.2BSD) (SIGURG)

§

Cpu_time_limit_exceeded = 23

CPU time limit exceeded (4.2BSD) (SIGXCPU)

§

File_size_limit_exceeded = 24

File size limit exceeded (4.2BSD) (SIGXFSZ)

§

Virtual_alarm = 25

Virtual alarm clock (4.2BSD) (SIGVTALRM)

§

Profiling_timer_expired = 26

Profiling timer expired (SIGPROF)

§

Window_resize = 27

Window resize signal (4.3BSD, Sun) (SIGWINCH)

§

IO_Possible = 28

I/O now possible (4.2BSD) (SIGIO)

§

Power_failure = 29

Power failure (System V) (SIGPWR)

§

Bad_system_call = 30

Bad system call (SVr4) (SIGSYS)

Implementations§

Source§

impl Signal_type

Source

pub const First: Self = Self::Hangup

Source

pub const Last: Self = Self::Bad_system_call

Source

pub const fn Get_discriminant(&self) -> u8

Trait Implementations§

Source§

impl Clone for Signal_type

Source§

fn clone(&self) -> Signal_type

Returns a copy 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_type

Source§

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

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

impl PartialEq for Signal_type

Source§

fn eq(&self, other: &Signal_type) -> 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_type

Source§

impl Eq for Signal_type

Source§

impl StructuralPartialEq for Signal_type

Auto Trait Implementations§

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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.