pub struct InFlightGauge { /* private fields */ }Expand description
Context-global in-flight gauge (drainclaim): the accepted-not-completed exchange counter plus a zero-transition notification.
Counting is owned by InFlightClaim RAII (attach increments, drop
decrements) — inc/dec are crate-private so no cross-crate code can
skew the count outside the claim lifecycle. Observers read the live
count via InFlightGauge::total and await quiescence via
InFlightGauge::idle: the last release (1→0) fires
notify_waiters(), waking every waiter registered before the release
(register-before-check: pin the notified() future and enable() it,
then read state). The sync-callable notify is what makes Drop a
completion signal for notification-based settle.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for InFlightGauge
impl RefUnwindSafe for InFlightGauge
impl Send for InFlightGauge
impl Sync for InFlightGauge
impl Unpin for InFlightGauge
impl UnsafeUnpin for InFlightGauge
impl UnwindSafe for InFlightGauge
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