pub struct SignalSet { /* private fields */ }Expand description
A bit-packed set of Signal values.
SignalSet is Copy and const-constructible. The recommended
constructors are SignalSet::graceful (the default for
long-running services) and SignalSet::standard.
Implementations§
Source§impl SignalSet
impl SignalSet
Sourcepub const fn all() -> Self
pub const fn all() -> Self
All defined variants enabled. Inert variants on the current
platform are still represented but ignored by install.
Sourcepub const fn standard() -> Self
pub const fn standard() -> Self
Maximum graceful coverage: Terminate | Interrupt | Quit | Hangup.
Sourcepub const fn iter(&self) -> SignalSetIter ⓘ
pub const fn iter(&self) -> SignalSetIter ⓘ
Iterate the enabled signals in canonical Signal::ALL order.
Trait Implementations§
Source§impl IntoIterator for SignalSet
impl IntoIterator for SignalSet
impl Copy for SignalSet
impl Eq for SignalSet
impl StructuralPartialEq for SignalSet
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