pub struct TracerStats {
pub total: usize,
pub errors: usize,
pub warnings: usize,
pub infos: usize,
pub debugs: usize,
pub traces: usize,
}Expand description
Aggregate statistics about a Tracer’s events.
Fields§
§total: usizeTotal events logged.
errors: usizeEvents at Error level.
warnings: usizeEvents at Warn level.
infos: usizeEvents at Info level.
debugs: usizeEvents at Debug level.
traces: usizeEvents at Trace level.
Implementations§
Source§impl TracerStats
impl TracerStats
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Check whether any errors were logged.
Sourcepub fn has_warnings(&self) -> bool
pub fn has_warnings(&self) -> bool
Check whether any warnings were logged.
Trait Implementations§
Source§impl Clone for TracerStats
impl Clone for TracerStats
Source§fn clone(&self) -> TracerStats
fn clone(&self) -> TracerStats
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 TracerStats
impl Debug for TracerStats
Source§impl Default for TracerStats
impl Default for TracerStats
Source§fn default() -> TracerStats
fn default() -> TracerStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TracerStats
impl RefUnwindSafe for TracerStats
impl Send for TracerStats
impl Sync for TracerStats
impl Unpin for TracerStats
impl UnsafeUnpin for TracerStats
impl UnwindSafe for TracerStats
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