Struct nix::sys::signal::SigAction
pub struct SigAction { /* fields hidden */ }Documentation
Action to take on receipt of a signal. Corresponds to sigaction.
Implementations
impl SigAction
pub fn new(
handler: SigHandler,
flags: SaFlags,
mask: SigSet
) -> SigAction
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.
pub fn handler(&Self) -> SigHandler
Returns the action’s handler.
Trait Implementations
impl Debug for SigAction
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl Hash for SigAction
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()impl StructuralEq for SigActionimpl StructuralPartialEq for SigActionAuto Trait Implementations
impl RefUnwindSafe for SigActionimpl UnwindSafe for SigActionBlanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T