RateLimiter

Type Alias RateLimiter 

Source
pub type RateLimiter<C> = RateLimiter<NotKeyed, InMemoryState, C, NoOpMiddleware<<C as Clock>::Instant>>;
Expand description

A direct (non-keyed) rate limiter using the provided governor::clock::Clock C.

This is a convenience type alias for creating single-entity rate limiters. For per-key rate limiting, use KeyedRateLimiter.

Aliased Typeยง

pub struct RateLimiter<C> { /* private fields */ }