Struct nix::sys::signal::SigAction [−][src]
pub struct SigAction { /* fields omitted */ }
Expand description
Action to take on receipt of a signal. Corresponds to sigaction
.
Implementations
impl SigAction
[src]
impl SigAction
[src]pub fn new(handler: SigHandler, flags: SaFlags, mask: SigSet) -> SigAction
[src]
pub fn new(handler: SigHandler, flags: SaFlags, mask: SigSet) -> SigAction
[src]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 mask(&self) -> SigSet
[src]
pub fn mask(&self) -> SigSet
[src]Returns the set of signals that are blocked during execution of the action’s signal-catching function.
pub fn handler(&self) -> SigHandler
[src]
pub fn handler(&self) -> SigHandler
[src]Returns the action’s handler.
Trait Implementations
impl Copy for SigAction
[src]
impl Eq for SigAction
[src]
impl StructuralEq for SigAction
[src]
impl StructuralPartialEq for SigAction
[src]
Auto Trait Implementations
impl RefUnwindSafe for SigAction
impl Send for SigAction
impl Sync for SigAction
impl Unpin for SigAction
impl UnwindSafe for SigAction
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more