pub struct SignalSet { /* private fields */ }Expand description
A set of signals represented as a bitmask.
Uses atomic operations for lock-free signal delivery.
Implementations§
Source§impl SignalSet
impl SignalSet
Sourcepub fn next_pending(&self) -> Option<Signal>
pub fn next_pending(&self) -> Option<Signal>
Get the next pending signal (lowest numbered).
Sourcepub fn unblocked(&self, blocked: &SignalSet) -> u64
pub fn unblocked(&self, blocked: &SignalSet) -> u64
Get signals that are in self but not in blocked.
Sourcepub fn consume_one_unblocked(&self, blocked: &SignalSet) -> Option<Signal>
pub fn consume_one_unblocked(&self, blocked: &SignalSet) -> Option<Signal>
Atomically consume one pending unblocked signal (CAS loop).
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SignalSet
impl RefUnwindSafe for SignalSet
impl Send for SignalSet
impl Sync for SignalSet
impl Unpin for SignalSet
impl UnsafeUnpin for SignalSet
impl UnwindSafe for SignalSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more