#[repr(u8)]
pub enum SignalNo {
Show 64 variants ERR = 0, SIGHUP = 1, SIGINT = 2, SIGQUIT = 3, SIGILL = 4, SIGTRAP = 5, SIGABRT = 6, SIGBUS = 7, SIGFPE = 8, SIGKILL = 9, SIGUSR1 = 10, SIGSEGV = 11, SIGUSR2 = 12, SIGPIPE = 13, SIGALRM = 14, SIGTERM = 15, SIGSTKFLT = 16, SIGCHLD = 17, SIGCONT = 18, SIGSTOP = 19, SIGTSTP = 20, SIGTTIN = 21, SIGTTOU = 22, SIGURG = 23, SIGXCPU = 24, SIGXFSZ = 25, SIGVTALRM = 26, SIGPROF = 27, SIGWINCH = 28, SIGIO = 29, SIGPWR = 30, SIGSYS = 31, SIGRTMIN = 32, SIGRT1 = 33, SIGRT2 = 34, SIGRT3 = 35, SIGRT4 = 36, SIGRT5 = 37, SIGRT6 = 38, SIGRT7 = 39, SIGRT8 = 40, SIGRT9 = 41, SIGRT10 = 42, SIGRT11 = 43, SIGRT12 = 44, SIGRT13 = 45, SIGRT14 = 46, SIGRT15 = 47, SIGRT16 = 48, SIGRT17 = 49, SIGRT18 = 50, SIGRT19 = 51, SIGRT20 = 52, SIGRT21 = 53, SIGRT22 = 54, SIGRT23 = 55, SIGRT24 = 56, SIGRT25 = 57, SIGRT26 = 58, SIGRT27 = 59, SIGRT28 = 60, SIGRT29 = 61, SIGRT30 = 62, SIGRT31 = 63,
}
Expand description

信号编号。

从 32 开始的部分为 SIGRT,其中 RT 表示 real time。 但目前实现时没有通过 ipi 等手段即时处理,而是像其他信号一样等到 trap 再处理

Variants§

§

ERR = 0

§

SIGHUP = 1

§

SIGINT = 2

§

SIGQUIT = 3

§

SIGILL = 4

§

SIGTRAP = 5

§

SIGABRT = 6

§

SIGBUS = 7

§

SIGFPE = 8

§

SIGKILL = 9

§

SIGUSR1 = 10

§

SIGSEGV = 11

§

SIGUSR2 = 12

§

SIGPIPE = 13

§

SIGALRM = 14

§

SIGTERM = 15

§

SIGSTKFLT = 16

§

SIGCHLD = 17

§

SIGCONT = 18

§

SIGSTOP = 19

§

SIGTSTP = 20

§

SIGTTIN = 21

§

SIGTTOU = 22

§

SIGURG = 23

§

SIGXCPU = 24

§

SIGXFSZ = 25

§

SIGVTALRM = 26

§

SIGPROF = 27

§

SIGWINCH = 28

§

SIGIO = 29

§

SIGPWR = 30

§

SIGSYS = 31

§

SIGRTMIN = 32

§

SIGRT1 = 33

§

SIGRT2 = 34

§

SIGRT3 = 35

§

SIGRT4 = 36

§

SIGRT5 = 37

§

SIGRT6 = 38

§

SIGRT7 = 39

§

SIGRT8 = 40

§

SIGRT9 = 41

§

SIGRT10 = 42

§

SIGRT11 = 43

§

SIGRT12 = 44

§

SIGRT13 = 45

§

SIGRT14 = 46

§

SIGRT15 = 47

§

SIGRT16 = 48

§

SIGRT17 = 49

§

SIGRT18 = 50

§

SIGRT19 = 51

§

SIGRT20 = 52

§

SIGRT21 = 53

§

SIGRT22 = 54

§

SIGRT23 = 55

§

SIGRT24 = 56

§

SIGRT25 = 57

§

SIGRT26 = 58

§

SIGRT27 = 59

§

SIGRT28 = 60

§

SIGRT29 = 61

§

SIGRT30 = 62

§

SIGRT31 = 63

Trait Implementations§

source§

impl Clone for SignalNo

source§

fn clone(&self) -> SignalNo

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 SignalNo

source§

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

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

impl From<SignalNo> for u8

source§

fn from(value: SignalNo) -> u8

Converts to this type from the input type.
source§

impl From<usize> for SignalNo

source§

fn from(num: usize) -> Self

Converts to this type from the input type.
source§

impl PartialEq for SignalNo

source§

fn eq(&self, other: &SignalNo) -> 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 TryFrom<u8> for SignalNo

§

type Error = u8

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

fn try_from(value: u8) -> Result<Self, u8>

Performs the conversion.
source§

impl Copy for SignalNo

source§

impl Eq for SignalNo

source§

impl StructuralEq for SignalNo

source§

impl StructuralPartialEq for SignalNo

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

§

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.