fuchsia_cobalt_builders::metric_event_builder

Trait MetricEventExt

Source
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);

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.

Implementations on Foreign Types§

Source§

impl MetricEventExt for MetricEvent

Implementors§