RateLimitState

Stores the rate limit state for a given bucket.

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

remaining
int remaining;

Undocumented in source.

resetTime
long resetTime;

Time at which this rate limit resets

Meta