pub trait TemperatureThresholdWait: TemperatureThresholdSet {
// Required method
async fn wait_for_temperature_threshold(
&mut self,
) -> Result<DegreesCelsius, Self::Error>;
}
Expand description
Asynchronously wait for Temperature measurements to exceed specified thresholds.
Required Methods§
Sourceasync fn wait_for_temperature_threshold(
&mut self,
) -> Result<DegreesCelsius, Self::Error>
async fn wait_for_temperature_threshold( &mut self, ) -> Result<DegreesCelsius, Self::Error>
Wait for Temperature to be measured above or below the previously set high and low thresholds. Returns the measured Temperature at time threshold is exceeded (in degrees Celsius).
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.