RelativeHumidityThresholdSet

Trait RelativeHumidityThresholdSet 

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

Source

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

Set lower RelativeHumidity threshold (in percentage).

Source

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.

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

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

Implementors§