pub trait RelativeHumidityThresholdSet: RelativeHumiditySensor {
// Required methods
async fn set_relative_humidity_threshold_low(
&mut self,
threshold: Percentage,
) -> Result<(), Self::Error>;
async fn set_relative_humidity_threshold_high(
&mut self,
threshold: Percentage,
) -> Result<(), Self::Error>;
}
Expand description
Asynchronously set RelativeHumidity thresholds.
Required Methods§
Sourceasync fn set_relative_humidity_threshold_low(
&mut self,
threshold: Percentage,
) -> Result<(), Self::Error>
async fn set_relative_humidity_threshold_low( &mut self, threshold: Percentage, ) -> Result<(), Self::Error>
Set lower RelativeHumidity threshold (in percentage).
Sourceasync fn set_relative_humidity_threshold_high(
&mut self,
threshold: Percentage,
) -> Result<(), Self::Error>
async fn set_relative_humidity_threshold_high( &mut self, threshold: Percentage, ) -> Result<(), Self::Error>
Set upper RelativeHumidity threshold (in percentage).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.