fn build_sensor_property<G, S, V>(
    b: &mut IfaceBuilder<Arc<Mutex<Sensor>>>,
    name: &str,
    getter: G,
    setter: Option<S>
) -> Box<dyn Fn(&Path<'_>, &dyn RefArg) -> Option<Message> + Send + Sync>where
    G: Fn(&Sensor) -> V + Send + Copy + 'static,
    S: Fn(&mut Sensor, V) + Send + Copy + 'static,
    V: RefArg + Arg + Append + for<'a> Get<'a> + Send + 'static,
Expand description

Construct a property for a sensor interface.

The value will be retrieved by calling getter() on the sensor.