MetricsSource

Trait MetricsSource 

Source
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§

Source

fn get_metrics(&self) -> KernelMetrics

Get current metrics.

Source

fn kernel_id(&self) -> &KernelId

Get kernel ID.

Source

fn is_active(&self) -> bool

Check if kernel is active.

Implementors§