pub trait RateLimitRouterExt {
// Required method
fn rate_limit(self, layer: RateLimitLayer) -> Self;
}Expand description
Extension trait — apply a rate-limit layer to a router.
Required Methods§
Sourcefn rate_limit(self, layer: RateLimitLayer) -> Self
fn rate_limit(self, layer: RateLimitLayer) -> Self
Apply this rate-limit configuration to all routes in this router.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".