[][src]Trait dipstick::Prefixed

pub trait Prefixed {
    fn get_prefixes(&self) -> &NameParts;
fn add_prefix<S: Into<String>>(&self, name: S) -> Self; fn prefix_append<S: Into<MetricName>>(&self, name: S) -> MetricName { ... }
fn prefix_prepend<S: Into<MetricName>>(&self, name: S) -> MetricName { ... } }

Name operations support.

Required methods

fn get_prefixes(&self) -> &NameParts

Returns namespace of component.

fn add_prefix<S: Into<String>>(&self, name: S) -> Self

Extend the namespace metrics will be defined in.

Loading content...

Provided methods

fn prefix_append<S: Into<MetricName>>(&self, name: S) -> MetricName

Append any name parts to the name's namespace.

fn prefix_prepend<S: Into<MetricName>>(&self, name: S) -> MetricName

Prepend any name parts to the name's namespace.

Loading content...

Implementors

impl<T: WithAttributes> Prefixed for T
[src]

fn get_prefixes(&self) -> &NameParts
[src]

Returns namespace of component.

fn add_prefix<S: Into<String>>(&self, name: S) -> Self
[src]

Adds a name part to any existing naming. Return a clone of the component with the updated naming.

fn prefix_append<S: Into<MetricName>>(&self, name: S) -> MetricName
[src]

fn prefix_prepend<S: Into<MetricName>>(&self, name: S) -> MetricName
[src]

Loading content...