pub struct RateLimiter { /* private fields */ }Expand description
Rate limiter for backpressure handling.
Implementations§
Source§impl RateLimiter
impl RateLimiter
Sourcepub fn current_count(&self) -> usize
pub fn current_count(&self) -> usize
Get the number of messages in the current window.
Sourcepub fn is_at_capacity(&self) -> bool
pub fn is_at_capacity(&self) -> bool
Check if the limiter is at capacity.