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.
Trait Implementations§
impl Copy for SigAction
impl Eq for SigAction
impl StructuralPartialEq for SigAction
Auto Trait Implementations§
impl Freeze for SigAction
impl RefUnwindSafe for SigAction
impl Send for SigAction
impl Sync for SigAction
impl Unpin for SigAction
impl UnwindSafe for SigAction
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)