Struct nix::sys::signal::SigSet
pub struct SigSet { /* fields hidden */ }
Documentation
Specifies a set of Signal
s that may be blocked, waited for, etc.
Implementations
impl SigSet
pub fn clear(&mut Self)
Remove all signals from this set.
pub fn thread_get_mask() -> Result<SigSet>
Gets the currently blocked (masked) set of signals for the calling thread.
pub fn thread_set_mask(&Self) -> Result<()>
Sets the set of signals as the signal mask for the calling thread.
pub fn thread_block(&Self) -> Result<()>
Adds the set of signals to the signal mask for the calling thread.
pub fn thread_unblock(&Self) -> Result<()>
Removes the set of signals from the signal mask for the calling thread.
pub fn thread_swap_mask(&Self, how: SigmaskHow) -> Result<SigSet>
Sets the set of signals as the signal mask, and returns the old mask.
Trait Implementations
impl Debug for SigSet
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Hash for SigSet
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()
impl StructuralEq for SigSet
impl StructuralPartialEq for SigSet
Auto Trait Implementations
impl RefUnwindSafe for SigSet
impl UnwindSafe for SigSet
Blanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T