Trait rtrtr::metrics::Source

source ·
pub trait Source: Send + Sync {
    // Required method
    fn append(&self, unit_name: &str, target: &mut Target);
}
Expand description

A type producing some metrics.

All this type needs to be able to do is output its metrics.

Required Methods§

source

fn append(&self, unit_name: &str, target: &mut Target)

Appends the metrics to the target.

The unit name is provided so a source doesn’t need to keep it around.

Implementations on Foreign Types§

source§

impl<T: Source> Source for Arc<T>

source§

fn append(&self, unit_name: &str, target: &mut Target)

Implementors§