Skip to main content

Crate rate_limiter

Crate rate_limiter 

Source
Expand description

Async resource throttling by explicit key.

This crate decides whether a keyed access is allowed now and how long the caller must wait otherwise. It does not schedule jobs, retry requests, or infer business scopes.

Structs§

AcquireResult
InvalidPolicyError
LocalRateLimiter
PeekResult
ValkeyRateLimiter

Enums§

InvalidPolicyKind
RateLimitError
RateLimitErrorKind
RateLimitPolicy
TryAcquireResult
ValkeyError

Traits§

RateLimiter