Skip to main content

AggregateMetrics

Trait AggregateMetrics 

Source
pub trait AggregateMetrics:
    Debug
    + Send
    + Sync {
    // Required method
    fn metric(&self, subphase: &'static str) -> Arc<dyn AggregateMetric> ⓘ;
}
Expand description

Factory for optional metrics owned by one aggregate expression.

subphase must be a stable static identifier. Repeated requests for the same subphase must return handles that update the same metric identity. An implementation may request no metrics. The execution engine assigns the aggregate expression identity.

Required Methods§

Source

fn metric(&self, subphase: &'static str) -> Arc<dyn AggregateMetric> ⓘ

Returns the metric for an aggregate-owned internal subphase.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§