tof_dataclasses::monitoring

Trait MoniData

Source
pub trait MoniData {
    // Required methods
    fn get_board_id(&self) -> u8;
    fn get(&self, varname: &str) -> Option<f32>;
    fn keys() -> Vec<&'static str>;
}
Expand description

Monitoring data shall share the same kind of interface.

Required Methods§

Source

fn get_board_id(&self) -> u8

Monitoring data is always tied to a specific board. This might not be its own board, but maybe the RB the data was gathered from This is an unique identifier for the monitoring data

Source

fn get(&self, varname: &str) -> Option<f32>

Access the (data) members by name

Source

fn keys() -> Vec<&'static str>

A list of the variables in this MoniData

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§