#rate #token-bucket #rate-limiting #limit #bucket #token

rate_limit

A simple token-bucket style rate limiter

2 releases

0.1.1 Jul 30, 2019
0.1.0 Jul 30, 2019

#8 in #token-bucket

Download history 9/week @ 2024-02-18 35/week @ 2024-02-25 26/week @ 2024-03-03 16/week @ 2024-03-10 13/week @ 2024-03-17

90 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