pub trait RelativeHumidityThresholdWait: ErrorType {
// Required methods
async fn wait_for_relative_humidity_low(
&mut self,
threshold: Percentage,
) -> Result<(), Self::Error>;
async fn wait_for_relative_humidity_high(
&mut self,
threshold: Percentage,
) -> Result<(), Self::Error>;
async fn wait_for_relative_humidity_out_of_range(
&mut self,
threshold_low: Percentage,
threshold_high: Percentage,
) -> Result<(), Self::Error>;
}
Expand description
Asynchronously wait for RelativeHumidity measurements to exceed specified thresholds.
Required Methods§
Sourceasync fn wait_for_relative_humidity_low(
&mut self,
threshold: Percentage,
) -> Result<(), Self::Error>
async fn wait_for_relative_humidity_low( &mut self, threshold: Percentage, ) -> Result<(), Self::Error>
Wait for RelativeHumidity to be measured below the given threshold (in percentage).
Sourceasync fn wait_for_relative_humidity_high(
&mut self,
threshold: Percentage,
) -> Result<(), Self::Error>
async fn wait_for_relative_humidity_high( &mut self, threshold: Percentage, ) -> Result<(), Self::Error>
Wait for RelativeHumidity to be measured above the given threshold (in percentage).
Sourceasync fn wait_for_relative_humidity_out_of_range(
&mut self,
threshold_low: Percentage,
threshold_high: Percentage,
) -> Result<(), Self::Error>
async fn wait_for_relative_humidity_out_of_range( &mut self, threshold_low: Percentage, threshold_high: Percentage, ) -> Result<(), Self::Error>
Wait for RelativeHumidity to be measured above or below the given high and low thresholds (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.