RateLimitState

Stores the rate limit state for a given bucket.

struct RateLimitState {
int remaining;
}

Members

Functions

waitTime
Duration waitTime()

Return the time that needs to be waited before another request can be made

willRateLimit
bool willRateLimit()

Returns true if this request is valid

Variables

resetTime
long resetTime;

Time at which this rate limit resets

Meta