pub struct RateLimitStatistics {
pub remaining: u64,
pub limit: u64,
pub reset: u64,
}Expand description
Metadata about the remaining quota for a particular group and key pair.
This struct provides information about the current state of a rate limit bucket, including how much quota remains, the total limit, and when the quota will reset.
Fields§
§remaining: u64The amount of quota still available.
For cluster scenarios, to improve performance, this value is a best effort approximation and may not be perfectly accurate across all nodes.
limit: u64The maximum amount of quota that can be consumed in a given time frame.
This represents the total capacity of the rate limit bucket.
reset: u64The amount of time in milliseconds until more quota is refreshed.
This indicates when the rate limit window will reset and quota will be replenished.
Auto Trait Implementations§
impl Freeze for RateLimitStatistics
impl RefUnwindSafe for RateLimitStatistics
impl Send for RateLimitStatistics
impl Sync for RateLimitStatistics
impl Unpin for RateLimitStatistics
impl UnsafeUnpin for RateLimitStatistics
impl UnwindSafe for RateLimitStatistics
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