Trait TemperatureThresholdSet

Source
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§

Source

async fn set_temperature_threshold_low( &mut self, threshold: DegreesCelsius, ) -> Result<(), Self::Error>

Set lower Temperature threshold (in degrees Celsius).

Source

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.

Implementations on Foreign Types§

Source§

impl<T: TemperatureThresholdSet + ?Sized> TemperatureThresholdSet for &mut T

Source§

async fn set_temperature_threshold_low( &mut self, threshold: DegreesCelsius, ) -> Result<(), Self::Error>

Source§

async fn set_temperature_threshold_high( &mut self, threshold: DegreesCelsius, ) -> Result<(), Self::Error>

Implementors§