MetricsSource

Trait MetricsSource 

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§

fn get_metrics(&self) -> KernelMetrics

Get current metrics.

fn kernel_id(&self) -> &KernelId

Get kernel ID.

fn is_active(&self) -> bool

Check if kernel is active.

Implementors§