pub struct LayerStats {
pub checks: u64,
pub detections: u64,
pub avg_duration_ms: f64,
pub detection_rate: f64,
/* private fields */
}Expand description
Statistics for a single layer
Fields§
§checks: u64Total checks by this layer
detections: u64Detections by this layer
avg_duration_ms: f64Average duration
detection_rate: f64Detection rate
Implementations§
Source§impl LayerStats
impl LayerStats
Sourcepub fn record(&mut self, result: &LayerResult)
pub fn record(&mut self, result: &LayerResult)
Record a layer result
Trait Implementations§
Source§impl Clone for LayerStats
impl Clone for LayerStats
Source§fn clone(&self) -> LayerStats
fn clone(&self) -> LayerStats
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 LayerStats
impl Debug for LayerStats
Source§impl Default for LayerStats
impl Default for LayerStats
Source§fn default() -> LayerStats
fn default() -> LayerStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LayerStats
impl RefUnwindSafe for LayerStats
impl Send for LayerStats
impl Sync for LayerStats
impl Unpin for LayerStats
impl UnwindSafe for LayerStats
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