pub trait TemperatureDriver<'a> {
// Required methods
fn set_client(&self, client: &'a dyn TemperatureClient);
fn read_temperature(&self) -> Result<(), ErrorCode>;
}
Expand description
A basic interface for a temperature sensor
pub trait TemperatureDriver<'a> {
// Required methods
fn set_client(&self, client: &'a dyn TemperatureClient);
fn read_temperature(&self) -> Result<(), ErrorCode>;
}
A basic interface for a temperature sensor