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§
Sourcefn get_board_id(&self) -> u8
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
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.