Struct nix::sys::signal::SigAction [−][src]
pub struct SigAction { /* fields omitted */ }Action to take on receipt of a signal. Corresponds to sigaction.
Methods
impl SigAction[src]
impl SigActionpub fn new(handler: SigHandler, flags: SaFlags, mask: SigSet) -> SigAction[src]
pub fn new(handler: SigHandler, flags: SaFlags, mask: SigSet) -> SigActionCreates 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]
pub fn flags(&self) -> SaFlagsReturns the flags set on the action.
pub fn mask(&self) -> SigSet[src]
pub fn mask(&self) -> SigSetReturns the set of signals that are blocked during execution of the action's signal-catching function.
pub fn handler(&self) -> SigHandler[src]
pub fn handler(&self) -> SigHandlerReturns the action's handler.
Trait Implementations
impl Clone for SigAction[src]
impl Clone for SigActionfn clone(&self) -> SigAction[src]
fn clone(&self) -> SigActionReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for SigAction[src]
impl Copy for SigAction