[][src]Enum pakr_signals::Sig

#[repr(i32)]pub enum Sig {
    ABRT,
    ALRM,
    BUS,
    CHLD,
    CONT,
    FPE,
    HUP,
    ILL,
    INT,
    KILL,
    PIPE,
    POLL,
    PROF,
    PWR,
    QUIT,
    SEGV,
    STKFLT,
    STOP,
    SYS,
    TERM,
    TSTP,
    TTIN,
    TTOU,
    URG,
    USR1,
    USR2,
    VTALRM,
    WINCH,
    XCPU,
    XFSZ,
}

Linux signals

Variants

ABRT
ALRM
BUS
CHLD
CONT
FPE
HUP
ILL
INT
KILL
PIPE
POLL
PROF
PWR
QUIT
SEGV
STKFLT
STOP
SYS
TERM
TSTP
TTIN
TTOU
URG
USR1
USR2
VTALRM
WINCH
XCPU
XFSZ

Implementations

impl Sig[src]

pub fn send_to(self, pid: Pid) -> Result<()>[src]

Send Signal to process specified by libc::pid_t.

Trait Implementations

impl Clone for Sig[src]

impl Copy for Sig[src]

impl Debug for Sig[src]

impl Eq for Sig[src]

impl From<i32> for Sig[src]

Convert i32 to Sig for valid signals.

Panics if sig does not represent a valid signal.

impl Into<i32> for Sig[src]

Convert Sig to i32 (for example to use with [libc::*] crate)

impl PartialEq<Sig> for Sig[src]

impl StructuralEq for Sig[src]

impl StructuralPartialEq for Sig[src]

Auto Trait Implementations

impl RefUnwindSafe for Sig

impl Send for Sig

impl Sync for Sig

impl Unpin for Sig

impl UnwindSafe for Sig

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.