[][src]Struct nix::sys::signal::SigAction

pub struct SigAction { /* fields omitted */ }

Action to take on receipt of a signal. Corresponds to sigaction.

Methods

impl SigAction[src]

pub fn new(handler: SigHandler, flags: SaFlags, mask: SigSet) -> SigAction[src]

Creates a new action.

The SA_SIGINFO bit in the flags argument is ignored (it will be set only if handler is the SigAction variant). mask specifies other signals to block during execution of the signal-catching function.

pub fn flags(&self) -> SaFlags[src]

Returns the flags set on the action.

pub fn mask(&self) -> SigSet[src]

Returns the set of signals that are blocked during execution of the action's signal-catching function.

pub fn handler(&self) -> SigHandler[src]

Returns the action's handler.

Trait Implementations

impl Copy for SigAction[src]

impl Clone for SigAction[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Unpin for SigAction

impl Sync for SigAction

impl Send for SigAction

impl UnwindSafe for SigAction

impl RefUnwindSafe for SigAction

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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