pub struct AlgorithmMetrics {
pub requests: u64,
pub allowed: u64,
pub rejected: u64,
pub avg_latency_us: u64,
}Expand description
单个算法的指标
Fields§
§requests: u64§allowed: u64§rejected: u64§avg_latency_us: u64Trait Implementations§
Source§impl Clone for AlgorithmMetrics
impl Clone for AlgorithmMetrics
Source§fn clone(&self) -> AlgorithmMetrics
fn clone(&self) -> AlgorithmMetrics
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 AlgorithmMetrics
impl Debug for AlgorithmMetrics
Source§impl Default for AlgorithmMetrics
impl Default for AlgorithmMetrics
Source§fn default() -> AlgorithmMetrics
fn default() -> AlgorithmMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AlgorithmMetrics
impl RefUnwindSafe for AlgorithmMetrics
impl Send for AlgorithmMetrics
impl Sync for AlgorithmMetrics
impl Unpin for AlgorithmMetrics
impl UnsafeUnpin for AlgorithmMetrics
impl UnwindSafe for AlgorithmMetrics
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