pub enum CleanupPolicy {
KillAndWait,
TermThenKill {
grace: Duration,
reap_timeout: Duration,
},
}Expand description
Caller-selected termination behavior for an owned process group.
Variants§
KillAndWait
Signal KILL immediately, then wait synchronously for the leader.
TermThenKill
Signal TERM, reserve the leader through the grace period, then signal KILL and poll reaping for at most the selected duration.
Trait Implementations§
Source§impl Clone for CleanupPolicy
impl Clone for CleanupPolicy
impl Copy for CleanupPolicy
Auto Trait Implementations§
impl Freeze for CleanupPolicy
impl RefUnwindSafe for CleanupPolicy
impl Send for CleanupPolicy
impl Sync for CleanupPolicy
impl Unpin for CleanupPolicy
impl UnsafeUnpin for CleanupPolicy
impl UnwindSafe for CleanupPolicy
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