Struct conserve::report::Report [] [src]

pub struct Report { /* fields omitted */ }

A Report is notified of problems or non-problematic events that occur while Conserve is running.

A Report holds counters, identified by a name. The name must be in KNOWN_COUNTERS.

A Report is internally mutable, so a single instance can be shared by multiple objects or scopes (on the same thread) who all append to it.

Cloning a Report makes another reference to the same underlying counters.

Methods

impl Report
[src]

Default constructor with plain text UI.

Make a new report viewed by a given UI.

Borrow (read-only) counters inside this report.

Increment a counter by a given amount.

The name must be a static string. Counters implicitly start at 0.

Merge the contents of from_report into self.

Trait Implementations

impl Clone for Report
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for Report
[src]

Formats the value using the given formatter. Read more

impl Log for Report
[src]

Determines if a log message with the specified metadata would be logged. Read more

Logs the LogRecord. Read more