Struct loggy::ErrorsScope
[−]
[src]
pub struct ErrorsScope { /* fields omitted */ }
Track the number of errors in the scope of the lifetime of the instance of this class.
Methods
impl ErrorsScope
[src]
fn new() -> ErrorsScope
[src]
Create a new errors tracking scope.
Initially, the scope is considered to have had no errors, regardless of
any previous calls to error!
.
fn errors(&self) -> usize
[src]
Return the number of calls to error!
in the current thread since this
instance was created.
This includes calls to note!
if the value given to is_error
is
true
.
fn had_errors(&self) -> bool
[src]
Return whether any calles to error!
were made in the current thread
since this instance was created.
This includes calls to note!
if the value given to is_error
is
true
.