pub struct SigSet { /* private fields */ }
Expand description
Specifies a set of Signal
s that may be blocked, waited for, etc.
Implementations
sourceimpl SigSet
impl SigSet
sourcepub fn contains(&self, signal: Signal) -> bool
pub fn contains(&self, signal: Signal) -> bool
Return whether this set includes the specified signal.
sourcepub fn iter(&self) -> SigSetIter<'_>ⓘNotable traits for SigSetIter<'_>impl Iterator for SigSetIter<'_> type Item = Signal;
pub fn iter(&self) -> SigSetIter<'_>ⓘNotable traits for SigSetIter<'_>impl Iterator for SigSetIter<'_> type Item = Signal;
Returns an iterator that yields the signals contained in this set.
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
sourceimpl Extend<Signal> for SigSet
impl Extend<Signal> for SigSet
sourcefn extend<T>(&mut self, iter: T) where
T: IntoIterator<Item = Signal>,
fn extend<T>(&mut self, iter: T) where
T: IntoIterator<Item = Signal>,
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl FromIterator<Signal> for SigSet
impl FromIterator<Signal> for SigSet
sourcefn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = Signal>,
fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = Signal>,
Creates a value from an iterator. Read more
sourceimpl<'a> IntoIterator for &'a SigSet
impl<'a> IntoIterator for &'a SigSet
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more