pub struct RequestRateWindows { /* private fields */ }Expand description
Per-PayloadRequestKind decaying call-rate estimates over three trailing
windows. Each [DecayingCounter] settles at rate · τ, so the values read
directly as “estimated calls in the last hour / day / month”. Pairs with the
lock-free all-time request_counters totals, which stay exact.
MILLIS_IN_MONTH is the codebase’s 4-week (28-day) month.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RequestRateWindows
impl RefUnwindSafe for RequestRateWindows
impl Send for RequestRateWindows
impl Sync for RequestRateWindows
impl Unpin for RequestRateWindows
impl UnsafeUnpin for RequestRateWindows
impl UnwindSafe for RequestRateWindows
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more