pub async fn rate_limit(
__arg0: State<Arc<RateLimiterState>>,
request: Request,
next: Next,
) -> Result<Response, StatusCode>Expand description
Axum middleware that rejects requests with 429 when the token bucket is exhausted.
pub async fn rate_limit(
__arg0: State<Arc<RateLimiterState>>,
request: Request,
next: Next,
) -> Result<Response, StatusCode>Axum middleware that rejects requests with 429 when the token bucket is exhausted.