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
)