pub struct RateLimitStats {
pub total_tracked_ips: usize,
pub currently_blocked_ips: u32,
pub total_failed_attempts: u64,
pub role_stats: HashMap<String, RoleRateLimitStats>,
}
Expand description
Rate limiting statistics
Fields§
§total_tracked_ips: usize
Number of IPs being tracked
currently_blocked_ips: u32
Number of currently blocked IPs
total_failed_attempts: u64
Total failed attempts across all IPs
role_stats: HashMap<String, RoleRateLimitStats>
Role-based rate limiting statistics
Trait Implementations§
Source§impl Clone for RateLimitStats
impl Clone for RateLimitStats
Source§fn clone(&self) -> RateLimitStats
fn clone(&self) -> RateLimitStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RateLimitStats
impl Debug for RateLimitStats
Source§impl<'de> Deserialize<'de> for RateLimitStats
impl<'de> Deserialize<'de> for RateLimitStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RateLimitStats
impl RefUnwindSafe for RateLimitStats
impl Send for RateLimitStats
impl Sync for RateLimitStats
impl Unpin for RateLimitStats
impl UnwindSafe for RateLimitStats
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