pub trait MetricEventExt {
// Required method
fn builder(metric_id: u32) -> MetricEventBuilder;
}
Expand description
Adds the builder()
method to MetricEvent
.
Required Methods§
sourcefn builder(metric_id: u32) -> MetricEventBuilder
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.