Trait spaceapi::sensors::SensorTemplate [−][src]
pub trait SensorTemplate: Send + Sync { fn to_sensor(&self, value_str: &str, sensors: &mut Sensors); }
Expand description
A trait for all possible sensor templates.
A sensor template is like a sensor struct, but without the actual data in it.
A SensorTemplate
is capable of registering itself in a Sensors
struct.