toggle menu
ktor
3.0.0
3.0.3
3.0.2
3.0.0
2.3.12
2.2.4
2.0.3
1.6.8
common
switch theme
search in API
ktor-server-rate-limit
/
io.ktor.server.plugins.ratelimit
/
RateLimiter
/
State
State
sealed
class
State
State of the rate limiter.
Inheritors
Available
Exhausted
Members
Types
Available
Link copied to clipboard
class
Available
(
val
remainingTokens
:
Int
,
val
limit
:
Int
,
val
refillAtTimeMillis
:
Long
)
:
RateLimiter.State
Rate limiter has enough tokens.
Exhausted
Link copied to clipboard
class
Exhausted
(
val
toWait
:
Duration
)
:
RateLimiter.State
Rate limiter is exhausted.