[][src]Type Definition ratelimit_meter::algorithms::DefaultAlgorithm

type DefaultAlgorithm = LeakyBucket;

The default rate limiting algorithm in this crate: The "leaky bucket".

The leaky bucket algorithm is fairly easy to understand and has decent performance in most cases. If better threaded performance is needed, this crate also offers the GCRA algorithm.