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 a shared reference to the same underlying counters.

Methods

impl Report
[src]

[src]

Default constructor with plain text UI.

[src]

Make a new report viewed by a given UI.

[src]

Borrow (read-only) counters inside this report.

[src]

Increment a counter by a given amount.

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

[src]

[src]

[src]

Merge the contents of from_report into self.

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl Clone for Report
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Report
[src]

[src]

Formats the value using the given formatter.

impl Display for Report
[src]

[src]

Formats the value using the given formatter. Read more

impl Log for Report
[src]

[src]

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

[src]

Logs the LogRecord. Read more