Trait delog::State

source ·
pub trait State<T> {
    // Required methods
    fn attempts(&self) -> T;
    fn successes(&self) -> T;
    fn flushes(&self) -> T;
    fn read(&self) -> T;
    fn written(&self) -> T;
}
Expand description

Trait for either state or statistics of loggers.

Required Methods§

source

fn attempts(&self) -> T

How often was one of the logging macros called.

source

fn successes(&self) -> T

How often was one of the logging macros called without early exit (e.g., buffer not full)

source

fn flushes(&self) -> T

How often was the flusher called.

source

fn read(&self) -> T

How many bytes were flushed so far.

source

fn written(&self) -> T

How many bytes were logged so far.

Implementors§