Trait HyperlightMetricOps

Source
pub trait HyperlightMetricOps {
    // Required method
    fn get_metric(&self) -> Result<&HyperlightMetric>;
}
Expand description

A trait that should be implemented by all enums that represent hyperlight metrics to convert the enum into a HyperlightMetric

Required Methods§

Source

fn get_metric(&self) -> Result<&HyperlightMetric>

Converts the enum into a HyperlightMetric

Implementors§

Source§

impl<T: HyperlightMetricEnum<T>> HyperlightMetricOps for T
where for<'a> &'static str: From<T> + From<&'a T>,