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 Freeze for ErrorCounter
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