pub trait AirQualityClient {
// Required methods
fn environment_specified(&self, result: Result<(), ErrorCode>);
fn co2_data_available(&self, value: Result<u32, ErrorCode>);
fn tvoc_data_available(&self, value: Result<u32, ErrorCode>);
}Expand description
Client for receiving Air Quality readings
Required Methods§
Sourcefn environment_specified(&self, result: Result<(), ErrorCode>)
fn environment_specified(&self, result: Result<(), ErrorCode>)
Called when the environment specify command has completed.
Sourcefn co2_data_available(&self, value: Result<u32, ErrorCode>)
fn co2_data_available(&self, value: Result<u32, ErrorCode>)
Called when a CO2 or equivalent CO2 (eCO2) reading has completed.
value: will contain the latest CO2 reading in ppm. An example value might be400.
Sourcefn tvoc_data_available(&self, value: Result<u32, ErrorCode>)
fn tvoc_data_available(&self, value: Result<u32, ErrorCode>)
Called when a Total Organic Compound (TVOC) reading has completed.
value: will contain the latest TVOC reading in ppb. An example value might be0.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".