#[repr(transparent)]pub struct SigAction {
sigaction: sigaction,
}
Expand description
Action to take on receipt of a signal. Corresponds to sigaction
.
Fields§
§sigaction: 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§
source§impl PartialEq for SigAction
impl PartialEq for SigAction
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