Trait spaceapi_server::api::SensorTemplate
[−]
pub trait SensorTemplate: Send + Sync {
fn to_sensor(&self, value_str: &str, sensors: &mut Sensors);
}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.
Required Methods
Implementors
impl SensorTemplate for PeopleNowPresentSensorTemplateimpl SensorTemplate for TemperatureSensorTemplate