Struct tracing_appender::non_blocking::ErrorCounter
source · [−]pub struct ErrorCounter(_);
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
sourceimpl 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
sourceimpl Clone for ErrorCounter
impl Clone for ErrorCounter
sourcefn clone(&self) -> ErrorCounter
fn clone(&self) -> ErrorCounter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for ErrorCounter
impl Send for ErrorCounter
impl Sync for ErrorCounter
impl Unpin for ErrorCounter
impl UnwindSafe for ErrorCounter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more