Trait biometrics::Sensor
source · pub trait Sensor {
type Reading;
// Required methods
fn label(&'static self) -> &'static str;
fn read(&'static self) -> Self::Reading;
}
Expand description
Sensor is the core type of the system. A sensor must be algebraic to be included in this library. An algebraic sensor allows one to take two readings, one on each side of a bucket, and compute the bucket with a single subtraction.