1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//! Core trait for rate limiter algorithms.
//!
//! This module defines the unified trait used by all rate limiter implementations.
//! It allows consistent use and interchangeability across token bucket, leaky bucket, window counter, and other algorithms.
pub use crateUint;
use crate::;
/// The core trait implemented by all rate limiter algorithms.
///
/// This trait defines the essential operations available on any rate limiter,
/// supporting both simple and verbose (diagnostic) usage patterns.