Skip to main content

MetricPlugin

Trait MetricPlugin 

Source
pub trait MetricPlugin: Sync {
    // Required methods
    fn key(&self) -> &str;
    fn name(&self) -> &str;
    fn description(&self) -> &str;
    fn version(&self) -> u32;
    fn measure(
        &self,
        model: &CodeModel,
    ) -> Result<ExternalMetricMeasurement, MetricPluginError>;
}

Required Methods§

Source

fn key(&self) -> &str

Source

fn name(&self) -> &str

Source

fn description(&self) -> &str

Source

fn version(&self) -> u32

Source

fn measure( &self, model: &CodeModel, ) -> Result<ExternalMetricMeasurement, MetricPluginError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§