pub enum KillSignal<'s> {
None,
SIGKILL,
SIGTERM,
Message(&'s str),
Code(u32),
}Expand description
Signal to send to a child process when terminating it via
ChildProcess::kill_with_signal.
Variants§
None
Send the default termination signal.
SIGKILL
Send SIGKILL, forcibly terminating the process.
SIGTERM
Send SIGTERM, requesting a graceful termination.
Message(&'s str)
Send a signal identified by name (e.g. "SIGHUP").
Code(u32)
Send a signal identified by its numeric value.
Trait Implementations§
Auto Trait Implementations§
impl<'s> Freeze for KillSignal<'s>
impl<'s> RefUnwindSafe for KillSignal<'s>
impl<'s> Send for KillSignal<'s>
impl<'s> Sync for KillSignal<'s>
impl<'s> Unpin for KillSignal<'s>
impl<'s> UnsafeUnpin for KillSignal<'s>
impl<'s> UnwindSafe for KillSignal<'s>
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