Module ratelimit_meter::algorithms
source · Re-exports
pub use self::gcra::*;
pub use self::leaky_bucket::*;
Modules
The Generic Cell Rate Algorithm
A classic leaky bucket algorithm
Traits
The trait that implementations of metered rate-limiter algorithms
have to implement.
Provides additional information about non-conforming cells, most
importantly the earliest time until the next cell could be
considered conforming.
Trait that all rate limit states have to implement around
housekeeping in keyed rate limiters.
Type Definitions
The default rate limiting algorithm in this crate: The “leaky
bucket”.