pub struct KeyMetrics {
pub requests: u64,
pub allowed: u64,
pub rejected: u64,
pub last_access_ms: i64,
}Expand description
单个 key 的指标
Fields§
§requests: u64§allowed: u64§rejected: u64§last_access_ms: i64Trait Implementations§
Source§impl Clone for KeyMetrics
impl Clone for KeyMetrics
Source§fn clone(&self) -> KeyMetrics
fn clone(&self) -> KeyMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KeyMetrics
impl Debug for KeyMetrics
Source§impl Default for KeyMetrics
impl Default for KeyMetrics
Source§fn default() -> KeyMetrics
fn default() -> KeyMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KeyMetrics
impl RefUnwindSafe for KeyMetrics
impl Send for KeyMetrics
impl Sync for KeyMetrics
impl Unpin for KeyMetrics
impl UnsafeUnpin for KeyMetrics
impl UnwindSafe for KeyMetrics
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