Skip to main content

CacheRateLimitRouterExt

Trait CacheRateLimitRouterExt 

Source
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§

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.

Implementations on Foreign Types§

Source§

impl<S: Clone + Send + Sync + 'static> CacheRateLimitRouterExt for Router<S>

Implementors§