Struct dogs::metric_logger::MetricLogger[][src]

pub struct MetricLogger { /* fields omitted */ }
Expand description

Implements a logger. It allows components to register headers and update values to display workflow:

  1. a component registers to the MetricLogger. It provides the data names and the MetricLogger returns their IDs.
  2. a component can update a metric by providing its ID and new value
  3. a component can request a display of all metrics

Implementations

requests metric information from all the registered components and display the metrics

adds some headers to reference metrics to be later logged. Returns indices of the metric headers.

updates a metric for further logging

Displays metric headers. Should be called at the beginning of the search

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.