Enum rustix::process::Signal

source ·
#[repr(i32)]
pub enum Signal {
Show 31 variants Hup = 1, Int = 2, Quit = 3, Ill = 4, Trap = 5, Abort = 6, Bus = 7, Fpe = 8, Kill = 9, Usr1 = 10, Segv = 11, Usr2 = 12, Pipe = 13, Alarm = 14, Term = 15, Stkflt = 16, Child = 17, Cont = 18, Stop = 19, Tstp = 20, Ttin = 21, Ttou = 22, Urg = 23, Xcpu = 24, Xfsz = 25, Vtalarm = 26, Prof = 27, Winch = 28, Io = 29, Power = 30, Sys = 31,
}
Expand description

A signal number for use with kill_process, kill_process_group, and kill_current_process_group.

Variants§

§

Hup = 1

SIGHUP

§

Int = 2

SIGINT

§

Quit = 3

SIGQUIT

§

Ill = 4

SIGILL

§

Trap = 5

SIGTRAP

§

Abort = 6

SIGABRT, aka SIGIOT

§

Bus = 7

SIGBUS

§

Fpe = 8

SIGFPE

§

Kill = 9

SIGKILL

§

Usr1 = 10

SIGUSR1

§

Segv = 11

SIGSEGV

§

Usr2 = 12

SIGUSR2

§

Pipe = 13

SIGPIPE

§

Alarm = 14

SIGALRM

§

Term = 15

SIGTERM

§

Stkflt = 16

SIGSTKFLT

§

Child = 17

SIGCHLD

§

Cont = 18

SIGCONT

§

Stop = 19

SIGSTOP

§

Tstp = 20

SIGTSTP

§

Ttin = 21

SIGTTIN

§

Ttou = 22

SIGTTOU

§

Urg = 23

SIGURG

§

Xcpu = 24

SIGXCPU

§

Xfsz = 25

SIGXFSZ

§

Vtalarm = 26

SIGVTALRM

§

Prof = 27

SIGPROF

§

Winch = 28

SIGWINCH

§

Io = 29

SIGIO, aka SIGPOLL

§

Power = 30

SIGPWR

§

Sys = 31

SIGSYS, aka SIGUNUSED

Implementations§

source§

impl Signal

source

pub fn from_raw(sig: c_int) -> Option<Self>

Convert a raw signal number into a Signal, if possible.

Trait Implementations§

source§

impl Clone for Signal

source§

fn clone(&self) -> Signal

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

source§

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

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

impl<'a, Num: ArgNumber> From<Signal> for ArgReg<'a, Num>

source§

fn from(sig: Signal) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Signal

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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> 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,

§

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>,

§

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>,

§

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.