#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-19 42/week @ 2024-02-26 24/week @ 2024-03-04 13/week @ 2024-03-11 11/week @ 2024-03-18 23/week @ 2024-03-25 41/week @ 2024-04-01 11/week @ 2024-04-08 14/week @ 2024-04-15

89 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