pub struct ShutdownProgress {
pub phase: ShutdownPhase,
pub total_connections: usize,
pub drained_connections: usize,
pub in_flight_requests: usize,
pub background_tasks: usize,
pub cleanup_done: usize,
pub cleanup_total: usize,
pub notes: Vec<String>,
}Expand description
Shutdown progress snapshot.
Fields§
§phase: ShutdownPhaseCurrent shutdown phase.
total_connections: usizeTotal active connections at start.
drained_connections: usizeConnections drained so far.
in_flight_requests: usizeIn-flight requests remaining.
background_tasks: usizeBackground tasks still running.
cleanup_done: usizeCleanup steps completed.
cleanup_total: usizeTotal cleanup steps.
notes: Vec<String>Optional notes for extra context.
Implementations§
Source§impl ShutdownProgress
impl ShutdownProgress
Sourcepub fn new(phase: ShutdownPhase) -> Self
pub fn new(phase: ShutdownPhase) -> Self
Create a new shutdown progress snapshot.
Sourcepub fn connections(self, drained: usize, total: usize) -> Self
pub fn connections(self, drained: usize, total: usize) -> Self
Set connection counts.
Sourcepub fn background_tasks(self, tasks: usize) -> Self
pub fn background_tasks(self, tasks: usize) -> Self
Set background task count.
Trait Implementations§
Source§impl Clone for ShutdownProgress
impl Clone for ShutdownProgress
Auto Trait Implementations§
impl Forget for ShutdownProgress
impl Freeze for ShutdownProgress
impl Move for ShutdownProgress
impl RefUnwindSafe for ShutdownProgress
impl Send for ShutdownProgress
impl Sync for ShutdownProgress
impl Unpin for ShutdownProgress
impl UnsafeUnpin for ShutdownProgress
impl UnwindSafe for ShutdownProgress
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