Expand description
§rate_limit
This is a simple token-butcket style rate limiter
It provides neat features like an estimate of the next block
and possible inverse of the bucket (filling vs draining)
this provides both thread-safe and non-thread-safe versions
Structs§
- Sync
Limiter - SyncLimiter is a simple token bucket-style rate limiter
- Unsync
Limiter - UnsyncLimiter is a simple token bucket-style rate limiter (cheaper to clone, but not thread safe)