Expand description
Direct rate limiters (those that can only hold one state).
Rate limiters based on these types are constructed with
the RateLimiter constructors
Structs§
- Ratelimited
Sink - A
Sinkcombinator that only allows sending elements when the rate-limiter allows it. - Ratelimited
Stream - A
Streamcombinator which will limit the rate of items being received.
Enums§
- NotKeyed
- The “this state store does not use keys” key type.
Traits§
- Direct
State Store - A trait for state stores that only keep one rate limiting state.
- Sink
Rate Limit Ext - Allows converting a
futures::Sinkcombinator into a rate-limited sink. - Stream
Rate Limit Ext - Allows converting a
futures::Streamcombinator into a rate-limited stream.