pub trait TemperatureThresholdSet: TemperatureSensor {
// Required methods
async fn set_temperature_threshold_low(
&mut self,
threshold: DegreesCelsius,
) -> Result<(), Self::Error>;
async fn set_temperature_threshold_high(
&mut self,
threshold: DegreesCelsius,
) -> Result<(), Self::Error>;
}
Expand description
Asynchronously set Temperature thresholds.
Required Methods§
Sourceasync fn set_temperature_threshold_low(
&mut self,
threshold: DegreesCelsius,
) -> Result<(), Self::Error>
async fn set_temperature_threshold_low( &mut self, threshold: DegreesCelsius, ) -> Result<(), Self::Error>
Set lower Temperature threshold (in degrees Celsius).
Sourceasync fn set_temperature_threshold_high(
&mut self,
threshold: DegreesCelsius,
) -> Result<(), Self::Error>
async fn set_temperature_threshold_high( &mut self, threshold: DegreesCelsius, ) -> Result<(), Self::Error>
Set upper Temperature threshold (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.