pub struct SignalHandler { /* private fields */ }
Implementations§
Source§impl SignalHandler
impl SignalHandler
Sourcepub fn with_termination_signals(termination_signals: &[i32]) -> Self
pub fn with_termination_signals(termination_signals: &[i32]) -> Self
Override the default termination signals list.
pub fn add_termination_signal(&mut self, signal: i32)
Sourcepub fn termination_pending(&mut self) -> bool
pub fn termination_pending(&mut self) -> bool
Returns true if there are unprocessed termination signals.
This is useful for checking for termination signals in between different stages of processing, so that the application responds fast to signals.
Trait Implementations§
Source§impl Debug for SignalHandler
impl Debug for SignalHandler
Auto Trait Implementations§
impl Freeze for SignalHandler
impl !RefUnwindSafe for SignalHandler
impl Send for SignalHandler
impl Sync for SignalHandler
impl Unpin for SignalHandler
impl !UnwindSafe for SignalHandler
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