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);
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.