Module diem_rate_limiter::rate_limit
source · Structs
- A token bucket object that keeps track of everything related to a key This can be used as a standalone rate limiter; however, to make it more useful it should be wrapped in an
Arc
and aMutex
to be shared across threads. - A generic token bucket filter