Trait Setted

Source
pub trait Setted<T>
where T: ToSetValue,
{ // Required method fn set_with_tags<'a>( &'a self, key: &'a str, value: T, ) -> MetricBuilder<'_, '_, Set>; // Provided method fn set(&self, key: &str, value: T) -> MetricResult<Set> { ... } }
Expand description

Trait for recording set values.

Sets count the number of unique elements in a group. You can use them to, for example, count the unique visitors to your site.

The following types are valid for sets:

  • i64

See the Statsd spec for more information.

Required Methods§

Source

fn set_with_tags<'a>( &'a self, key: &'a str, value: T, ) -> MetricBuilder<'_, '_, Set>

Record a single set value with the given key and return a MetricBuilder that can be used to add tags to the metric.

Provided Methods§

Source

fn set(&self, key: &str, value: T) -> MetricResult<Set>

Record a single set value with the given key

Implementors§

Source§

impl<T> Setted<T> for StatsdClient
where T: ToSetValue,