pub struct LifecycleSnapshot {
pub active: usize,
pub draining: bool,
pub draining_for: Option<Duration>,
}Expand description
Current request admission and drain state.
Fields§
§active: usizeAdmitted requests whose guards have not been dropped.
draining: boolWhether admission has closed.
draining_for: Option<Duration>Elapsed time since admission closed, including time after completion.
Trait Implementations§
Source§impl Clone for LifecycleSnapshot
impl Clone for LifecycleSnapshot
impl Copy for LifecycleSnapshot
Source§impl Debug for LifecycleSnapshot
impl Debug for LifecycleSnapshot
impl Eq for LifecycleSnapshot
Source§impl PartialEq for LifecycleSnapshot
impl PartialEq for LifecycleSnapshot
impl StructuralPartialEq for LifecycleSnapshot
Auto Trait Implementations§
impl Freeze for LifecycleSnapshot
impl RefUnwindSafe for LifecycleSnapshot
impl Send for LifecycleSnapshot
impl Sync for LifecycleSnapshot
impl Unpin for LifecycleSnapshot
impl UnsafeUnpin for LifecycleSnapshot
impl UnwindSafe for LifecycleSnapshot
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