Crate rate_limiter

source ·

Modules§

Structs§

  • Wrapper around SleepingRateLimiter to simplify implementation of the AsyncRead trait.
  • Allows to limit access to some resource. Given a preferred rate (units of something) and last used amount of units of some resource, it calculates how long we should delay our next access to that resource in order to satisfy that rate.

Constants§