Module token_bucket

Module token_bucket 

Source
๐Ÿ‘ŽDeprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
Expand description

This module contains TokenBucket, which provides ability to limit rate of certain events, while allowing bursts through. KeyedRateLimiter allows to rate-limit multiple keyed items, such as connections.

Structsยง

KeyedRateLimiterDeprecated
Provides rate limiting for multiple contexts at the same time
TokenBucketDeprecated
Enforces a rate limit on the volume of requests per unit time.