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§
Sourcefn get_metric(&self) -> Result<&HyperlightMetric>
fn get_metric(&self) -> Result<&HyperlightMetric>
Converts the enum into a HyperlightMetric