pub struct RateLimiterStats {
pub enabled: bool,
pub categories: HashMap<RateLimitCategory, CategoryStats>,
}
Expand description
Statistics about rate limiter state
Fields§
§enabled: bool
Whether rate limiting is enabled
categories: HashMap<RateLimitCategory, CategoryStats>
Per-category statistics
Trait Implementations§
Source§impl Clone for RateLimiterStats
impl Clone for RateLimiterStats
Source§fn clone(&self) -> RateLimiterStats
fn clone(&self) -> RateLimiterStats
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RateLimiterStats
impl RefUnwindSafe for RateLimiterStats
impl Send for RateLimiterStats
impl Sync for RateLimiterStats
impl Unpin for RateLimiterStats
impl UnwindSafe for RateLimiterStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more