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.