pub struct DispatchSignals { /* private fields */ }Expand description
Shared between the dispatcher and the binary’s ctrlc handler.
The handler calls DispatchSignals::on_signal when SIGINT/SIGTERM
fires; the dispatcher registers/clears the running child’s PID and reads
was_interrupted() after the child exits to decide between Finish and
Interrupted audit events.
Implementations§
Trait Implementations§
Source§impl Debug for DispatchSignals
impl Debug for DispatchSignals
Source§impl Default for DispatchSignals
impl Default for DispatchSignals
Source§fn default() -> DispatchSignals
fn default() -> DispatchSignals
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for DispatchSignals
impl RefUnwindSafe for DispatchSignals
impl Send for DispatchSignals
impl Sync for DispatchSignals
impl Unpin for DispatchSignals
impl UnsafeUnpin for DispatchSignals
impl UnwindSafe for DispatchSignals
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