pub trait CacheRateLimitRouterExt {
// Required method
fn cache_rate_limit(self, layer: CacheRateLimitLayer) -> Self;
}Expand description
Extension trait — apply a cache-backed rate-limit layer to a router.
Required Methods§
fn cache_rate_limit(self, layer: CacheRateLimitLayer) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.