Trait i2csensors::Thermometer [] [src]

pub trait Thermometer {
    type Error: Error;
    fn temperature_celsius(&mut self) -> Result<f32, Self::Error>;
}

Trait for sensors that provide access to temperature readings

Associated Types

Required Methods

Get a temperature from the sensor in degrees celsius

Returns Ok(temperature) if available, otherwise returns Err(Self::Error)

Implementors