Macros§
- init_
rate_ limiter - Initialize the rate limiter with default and optional route-specific rules.
This must be called once, typically at application startup, before any calls to
limit!
. - limit
- Check if a request should be allowed based on rate limiting rules.
- limit_
override - Check rate limit with override mode (only applies route-specific rules).
Structs§
- Limiter
Config - Configuration for the rate limiter
- Request
Record - Rule
Config
Enums§
Functions§
- check_
limit - Check if a request should be allowed.
- check_
limit_ override - Check rate limit with override mode.
- current_
timestamp - initialize_
limiter - Initialize the global rate limiter. Should be called only once.