Skip to main content

DataSource

Trait DataSource 

Source
pub trait DataSource {
    // Required methods
    fn node_birth_metrics(&self) -> Vec<Metric>;
    fn device_birth_metrics(&self, device: &str) -> Vec<Metric>;
}
Expand description

What the application supplies to the engine: the metrics to publish in births.

Required Methods§

Source

fn node_birth_metrics(&self) -> Vec<Metric>

The Edge Node’s metrics for an NBIRTH (every metric it will ever report).

Source

fn device_birth_metrics(&self, device: &str) -> Vec<Metric>

A Device’s metrics for a DBIRTH.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§