pub struct LeanWorkerShutdownReport {
pub outcome: LeanWorkerShutdownOutcome,
pub exit: LeanWorkerExit,
pub graceful_timeout: Duration,
pub elapsed: Duration,
pub kill_elapsed: Option<Duration>,
pub wait_elapsed: Duration,
}Expand description
Structured result of shutting down a worker child.
Fields§
§outcome: LeanWorkerShutdownOutcomeHow shutdown reached a terminal child state.
exit: LeanWorkerExitFinal child-process exit information.
graceful_timeout: DurationGraceful-shutdown deadline used for this operation.
elapsed: DurationTotal elapsed shutdown time observed by the parent.
kill_elapsed: Option<Duration>Time spent after kill escalation, when a kill was needed.
wait_elapsed: DurationTime spent waiting for the final child exit.
Trait Implementations§
Source§impl Clone for LeanWorkerShutdownReport
impl Clone for LeanWorkerShutdownReport
Source§fn clone(&self) -> LeanWorkerShutdownReport
fn clone(&self) -> LeanWorkerShutdownReport
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 LeanWorkerShutdownReport
impl Debug for LeanWorkerShutdownReport
impl Eq for LeanWorkerShutdownReport
Source§impl PartialEq for LeanWorkerShutdownReport
impl PartialEq for LeanWorkerShutdownReport
Source§fn eq(&self, other: &LeanWorkerShutdownReport) -> bool
fn eq(&self, other: &LeanWorkerShutdownReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LeanWorkerShutdownReport
Auto Trait Implementations§
impl Freeze for LeanWorkerShutdownReport
impl RefUnwindSafe for LeanWorkerShutdownReport
impl Send for LeanWorkerShutdownReport
impl Sync for LeanWorkerShutdownReport
impl Unpin for LeanWorkerShutdownReport
impl UnsafeUnpin for LeanWorkerShutdownReport
impl UnwindSafe for LeanWorkerShutdownReport
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