2 releases
0.1.1 | Jul 30, 2019 |
---|---|
0.1.0 | Jul 30, 2019 |
#10 in #token-bucket
87 downloads per month
Used in 2 crates
11KB
157 lines
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
lib.rs
:
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