pub trait MetricsSource: Send + Sync {
// Required methods
fn get_metrics(&self) -> KernelMetrics;
fn kernel_id(&self) -> &KernelId;
fn is_active(&self) -> bool;
}Expand description
Trait for providing metrics from a kernel.
Required Methods§
Sourcefn get_metrics(&self) -> KernelMetrics
fn get_metrics(&self) -> KernelMetrics
Get current metrics.