pub struct SigAction { /* private fields */ }
Expand description
Action to take on receipt of a signal. Corresponds to sigaction
.
Implementations§
source§impl SigAction
impl SigAction
sourcepub fn new(handler: SigHandler, flags: SaFlags, mask: SigSet) -> SigAction
pub fn new(handler: SigHandler, flags: SaFlags, mask: SigSet) -> SigAction
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.
sourcepub fn mask(&self) -> SigSet
pub fn mask(&self) -> SigSet
Returns the set of signals that are blocked during execution of the action’s signal-catching function.
sourcepub fn handler(&self) -> SigHandler
pub fn handler(&self) -> SigHandler
Returns the action’s handler.