pub trait MetricEventExt {
    // Required method
    fn builder(metric_id: u32) -> MetricEventBuilder;
}
Expand description

Adds the builder() method to MetricEvent.

Required Methods§

source

fn builder(metric_id: u32) -> MetricEventBuilder

Returns a MetricEventBuilder for the specified metric_id.

§Examples
assert_eq!(MetricEvent::builder(5).as_event().metric_id, 0);

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl MetricEventExt for MetricEvent

Implementors§