pub struct Statistics {
pub attempts: usize,
pub successes: usize,
pub flushes: usize,
pub read: usize,
pub written: usize,
}Expand description
Statistics on logger usage.
Fields§
§attempts: usizeHow often was one of the logging macros called.
successes: usizeHow often was one of the logging macros called without early exit (e.g., buffer not full)
flushes: usizeHow often was the flusher called.
read: usizeHow many bytes were flushed so far.
written: usizeHow many bytes were logged so far.
Trait Implementations§
Source§impl Clone for Statistics
impl Clone for Statistics
Source§fn clone(&self) -> Statistics
fn clone(&self) -> Statistics
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 Statistics
impl Debug for Statistics
impl Copy for Statistics
Auto Trait Implementations§
impl Freeze for Statistics
impl RefUnwindSafe for Statistics
impl Send for Statistics
impl Sync for Statistics
impl Unpin for Statistics
impl UnwindSafe for Statistics
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