MetricCollector

Trait MetricCollector 

Source
pub trait MetricCollector:
    Debug
    + Send
    + Sync {
    // Required methods
    fn collect_metrics(&self) -> QuantRS2Result<Vec<MetricMeasurement>>;
    fn supported_metrics(&self) -> HashSet<MetricType>;
    fn platform(&self) -> HardwarePlatform;
    fn initialize(&mut self) -> QuantRS2Result<()>;
    fn is_connected(&self) -> bool;
    fn disconnect(&mut self) -> QuantRS2Result<()>;
}
Expand description

Trait for platform-specific metric collection

Required Methods§

Source

fn collect_metrics(&self) -> QuantRS2Result<Vec<MetricMeasurement>>

Collect metrics from the platform

Source

fn supported_metrics(&self) -> HashSet<MetricType>

Get supported metric types

Source

fn platform(&self) -> HardwarePlatform

Platform identifier

Source

fn initialize(&mut self) -> QuantRS2Result<()>

Initialize connection to hardware

Source

fn is_connected(&self) -> bool

Check connection status

Source

fn disconnect(&mut self) -> QuantRS2Result<()>

Disconnect from hardware

Implementors§