Struct spawn_wait::SignalHandler
source · [−]pub struct SignalHandler { /* private fields */ }Implementations
sourceimpl 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
sourceimpl Debug for SignalHandler
impl Debug for SignalHandler
Auto Trait Implementations
impl !RefUnwindSafe for SignalHandler
impl Send for SignalHandler
impl Sync for SignalHandler
impl Unpin for SignalHandler
impl !UnwindSafe for SignalHandler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more