pub struct RateLimitProgress {
pub kind: RateLimitWait,
pub elapsed: Duration,
pub remaining: Duration,
pub total: Duration,
pub consecutive_blocks: u32,
}Expand description
One progress observation for an in-flight rate-limit wait. Emitted once per acquire cycle (the inner sleep is bounded so a long cooldown still yields periodic updates without a separate timer task).
total ≈ elapsed + remaining at the moment of emission, modulo
jitter and small clock drift.
Fields§
§kind: RateLimitWait§elapsed: Duration§remaining: Duration§total: Duration§consecutive_blocks: u32Trait Implementations§
Source§impl Clone for RateLimitProgress
impl Clone for RateLimitProgress
Source§fn clone(&self) -> RateLimitProgress
fn clone(&self) -> RateLimitProgress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RateLimitProgress
impl Debug for RateLimitProgress
impl Copy for RateLimitProgress
Auto Trait Implementations§
impl Freeze for RateLimitProgress
impl RefUnwindSafe for RateLimitProgress
impl Send for RateLimitProgress
impl Sync for RateLimitProgress
impl Unpin for RateLimitProgress
impl UnsafeUnpin for RateLimitProgress
impl UnwindSafe for RateLimitProgress
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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