pub struct SigSet { /* private fields */ }
Implementations
sourceimpl SigSet
impl SigSet
pub fn all() -> SigSet
pub fn empty() -> SigSet
pub fn add(&mut self, signal: Signal)
pub fn clear(&mut self)
pub fn remove(&mut self, signal: Signal)
pub fn contains(&self, signal: Signal) -> bool
pub fn extend(&mut self, other: &SigSet)
sourcepub fn thread_get_mask() -> Result<SigSet>
pub fn thread_get_mask() -> Result<SigSet>
Gets the currently blocked (masked) set of signals for the calling thread.
sourcepub fn thread_set_mask(&self) -> Result<()>
pub fn thread_set_mask(&self) -> Result<()>
Sets the set of signals as the signal mask for the calling thread.
sourcepub fn thread_block(&self) -> Result<()>
pub fn thread_block(&self) -> Result<()>
Adds the set of signals to the signal mask for the calling thread.
sourcepub fn thread_unblock(&self) -> Result<()>
pub fn thread_unblock(&self) -> Result<()>
Removes the set of signals from the signal mask for the calling thread.
sourcepub fn thread_swap_mask(&self, how: SigmaskHow) -> Result<SigSet>
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 Copy for SigSet
impl Eq for SigSet
impl StructuralEq for SigSet
impl StructuralPartialEq for SigSet
Auto Trait Implementations
impl RefUnwindSafe for SigSet
impl Send for SigSet
impl Sync for SigSet
impl Unpin for SigSet
impl UnwindSafe for SigSet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more