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]

[src]

Create a new errors tracking scope.

Initially, the scope is considered to have had no errors, regardless of any previous calls to error!.

[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.

[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.