KeyedRateLimiter

Type Alias KeyedRateLimiter 

Source
pub type KeyedRateLimiter<K, C> = RateLimiter<K, HashMapStateStore<K>, C, NoOpMiddleware<<C as Clock>::Instant>>;
Expand description

A rate limiter keyed by K using the provided governor::clock::Clock C.

This is a convenience type alias for creating per-peer rate limiters using governor’s HashMapStateStore.

Aliased Type§

pub struct KeyedRateLimiter<K, C> { /* private fields */ }