Trait GetHyperlightMetric

Source
pub trait GetHyperlightMetric<T> {
    // Required method
    fn metric(&self) -> Result<&T>;
}
Expand description

A trait that should be implemented by all hyperlight metric definitions to convert the metric into a HyperlightMetric

Required Methods§

Source

fn metric(&self) -> Result<&T>

Converts the metric into a HyperlightMetric

Implementors§