Struct DiagnosticCounts
pub struct DiagnosticCounts {
pub records: usize,
pub occurrences: u64,
}Expand description
Retained record and occurrence counts, returned by Diagnostics::summary.
See that method’s example for total and per-severity queries.
Fields§
§records: usizeNumber of retained records after consecutive deduplication.
occurrences: u64Sum of retained repeats, including each record’s first occurrence.
Saturates at u64::MAX; does not include evicted occurrences.
Trait Implementations§
§impl Clone for DiagnosticCounts
impl Clone for DiagnosticCounts
§fn clone(&self) -> DiagnosticCounts
fn clone(&self) -> DiagnosticCounts
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 more§impl Debug for DiagnosticCounts
impl Debug for DiagnosticCounts
§impl Default for DiagnosticCounts
impl Default for DiagnosticCounts
§fn default() -> DiagnosticCounts
fn default() -> DiagnosticCounts
Returns the “default value” for a type. Read more
§impl PartialEq for DiagnosticCounts
impl PartialEq for DiagnosticCounts
impl Copy for DiagnosticCounts
impl Eq for DiagnosticCounts
impl StructuralPartialEq for DiagnosticCounts
Auto Trait Implementations§
impl Freeze for DiagnosticCounts
impl RefUnwindSafe for DiagnosticCounts
impl Send for DiagnosticCounts
impl Sync for DiagnosticCounts
impl Unpin for DiagnosticCounts
impl UnwindSafe for DiagnosticCounts
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