#[non_exhaustive]pub struct LifecycleSnapshot {
pub active: usize,
pub draining: bool,
pub draining_for: Option<Duration>,
}Expand description
Current request admission and drain state.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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