Trait spaceapi::sensors::SensorTemplate[][src]

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

fn to_sensor(&self, value_str: &str, sensors: &mut Sensors)[src]

Loading content...

Implementors

impl SensorTemplate for PeopleNowPresentSensorTemplate[src]

fn to_sensor(&self, value_str: &str, sensors: &mut Sensors)[src]

impl SensorTemplate for TemperatureSensorTemplate[src]

fn to_sensor(&self, value_str: &str, sensors: &mut Sensors)[src]

Loading content...