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