pub enum LeanWorkerShutdownOutcome {
AlreadyExited,
Graceful,
GracefulTimedOutKilled,
GracefulProtocolFailedKilled,
KillOnly,
}Expand description
Shutdown path used to reach a terminal child state.
Variants§
AlreadyExited
The child had already exited before shutdown was requested.
Graceful
The child accepted Request::Terminate and exited without escalation.
GracefulTimedOutKilled
The child did not exit before the graceful deadline, so the parent killed it.
GracefulProtocolFailedKilled
The graceful protocol path failed, so the parent killed the child.
KillOnly
The caller requested an immediate kill/reap path.
Trait Implementations§
Source§impl Clone for LeanWorkerShutdownOutcome
impl Clone for LeanWorkerShutdownOutcome
Source§fn clone(&self) -> LeanWorkerShutdownOutcome
fn clone(&self) -> LeanWorkerShutdownOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LeanWorkerShutdownOutcome
impl Debug for LeanWorkerShutdownOutcome
impl Eq for LeanWorkerShutdownOutcome
Source§impl PartialEq for LeanWorkerShutdownOutcome
impl PartialEq for LeanWorkerShutdownOutcome
Source§fn eq(&self, other: &LeanWorkerShutdownOutcome) -> bool
fn eq(&self, other: &LeanWorkerShutdownOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LeanWorkerShutdownOutcome
Auto Trait Implementations§
impl Freeze for LeanWorkerShutdownOutcome
impl RefUnwindSafe for LeanWorkerShutdownOutcome
impl Send for LeanWorkerShutdownOutcome
impl Sync for LeanWorkerShutdownOutcome
impl Unpin for LeanWorkerShutdownOutcome
impl UnsafeUnpin for LeanWorkerShutdownOutcome
impl UnwindSafe for LeanWorkerShutdownOutcome
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