Struct nix::sys::signal::SigAction [−][src]
Action to take on receipt of a signal. Corresponds to sigaction
.
Implementations
impl 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 flags(&self) -> SaFlags
[src]
Returns the flags set on the action.
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]
Returns the action’s handler.
Trait Implementations
impl Clone for SigAction
[src]
impl Copy for SigAction
[src]
impl Debug for SigAction
[src]
impl Eq for SigAction
[src]
impl Hash for SigAction
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<SigAction> 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,