[−][src]Crate rate_limit
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
SyncLimiter | SyncLimiter is a simple token bucket-style rate limiter |
UnsyncLimiter | UnsyncLimiter is a simple token bucket-style rate limiter (cheaper to clone, but not thread safe) |