rate_limit 0.1.1

A simple token-bucket style rate limiter
Documentation
  • Coverage
  • 100%
    15 out of 15 items documented2 out of 14 items with examples
  • Size
  • Source code size: 10.79 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 377.04 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • museun/rate_limit
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • museun

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