pub enum Shutdown {
BrutalKill,
Duration(Duration),
Infinity,
}Expand description
Defines how a child process should be terminated.
Variants§
BrutalKill
The child process is unconditionally and immediately terminated using Process::exit(child, ExitReason::Kill).
Duration(Duration)
The amount of time that the parent will wait for it’s children to terminate after emitting a
Process::exit(child, ExitReason::from("shutdown")) signal. If the child process is not trapping exits, the initial shutdown signal
will terminate the child process immediately. If the child process is trapping exits, it has the given duration to terminate.
Infinity
The parent will wait indefinitely for the child to terminate.
Trait Implementations§
Source§impl Ord for Shutdown
impl Ord for Shutdown
Source§impl PartialOrd for Shutdown
impl PartialOrd for Shutdown
impl Copy for Shutdown
impl Eq for Shutdown
impl StructuralPartialEq for Shutdown
Auto Trait Implementations§
impl Freeze for Shutdown
impl RefUnwindSafe for Shutdown
impl Send for Shutdown
impl Sync for Shutdown
impl Unpin for Shutdown
impl UnwindSafe for Shutdown
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