#limit #rate-limiting #bucket

rate_limit

A simple token-bucket style rate limiter

2 releases

0.1.1 Jul 30, 2019
0.1.0 Jul 30, 2019

#4 in #rate-limiter

30 downloads per month
Used in 2 crates

0BSD license

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

No runtime deps