pub async fn rate_limit_middleware(
__arg0: State<RateLimitState>,
req: Request,
next: Next,
) -> Result<Response, RateLimitError>Expand description
Rate limiting middleware
Limits requests per IP using token bucket algorithm.
pub async fn rate_limit_middleware(
__arg0: State<RateLimitState>,
req: Request,
next: Next,
) -> Result<Response, RateLimitError>Rate limiting middleware
Limits requests per IP using token bucket algorithm.