Struct tracing_appender::non_blocking::ErrorCounter
source · pub struct ErrorCounter(/* private fields */);
Expand description
Tracks the number of times a log line was dropped by the background thread.
If the non-blocking writer is not configured in lossy mode, the error count should always be 0.
Implementations§
source§impl ErrorCounter
impl ErrorCounter
sourcepub fn dropped_lines(&self) -> usize
pub fn dropped_lines(&self) -> usize
Returns the number of log lines that have been dropped.
If the non-blocking writer is not configured in lossy mode, the error count should always be 0.
Trait Implementations§
source§impl Clone for ErrorCounter
impl Clone for ErrorCounter
source§fn clone(&self) -> ErrorCounter
fn clone(&self) -> ErrorCounter
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for ErrorCounter
impl Send for ErrorCounter
impl Sync for ErrorCounter
impl Unpin for ErrorCounter
impl UnwindSafe for ErrorCounter
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