pub trait MetricsCollector {
// Required methods
fn collect_metrics(&self, deployment_id: &str) -> DeviceResult<Vec<Metric>>;
fn get_collector_name(&self) -> String;
}Expand description
Metrics collector trait
Required Methods§
fn collect_metrics(&self, deployment_id: &str) -> DeviceResult<Vec<Metric>>
fn get_collector_name(&self) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".