pub trait WriteableTempSensor: TempSensor + WriteableSensor + WriteableEnable + WriteableMin + WriteableMax + WriteableCrit + WriteableLowCrit {
    fn write_offset(&self, offset: Temperature) -> Result<(), Error> { ... }
    fn write_max_hyst(&self, max_hyst: Temperature) -> Result<(), Error> { ... }
    fn write_min_hyst(&self, min_hyst: Temperature) -> Result<(), Error> { ... }
    fn write_crit_hyst(&self, crit_hyst: Temperature) -> Result<(), Error> { ... }
    fn write_emergency(&self, emergency: Temperature) -> Result<(), Error> { ... }
    fn write_emergency_hyst(
        &self,
        emergency_hyst: Temperature
    ) -> Result<(), Error> { ... } fn write_lcrit_hyst(&self, lcrit_hyst: Temperature) -> Result<(), Error> { ... } }
Expand description

Helper trait that sums up all functionality of a read-write temp sensor.

Provided Methods

Converts offset and writes it to this temp’s offset subfunction. Returns an error, if this sensor doesn’t support the subfunction.

Converts max_hyst and writes it to this temp’s max_hyst subfunction. Returns an error, if this sensor doesn’t support the subfunction.

Converts min_hyst and writes it to this temp’s min_hyst subfunction. Returns an error, if this sensor doesn’t support the subfunction.

Converts crit_hyst and writes it to this temp’s crit_hyst subfunction. Returns an error, if this sensor doesn’t support the subfunction.

Converts emergency and writes it to this temp’s emergency subfunction. Returns an error, if this sensor doesn’t support the subfunction.

Converts emergency_hyst and writes it to this temp’s emergency_hyst subfunction. Returns an error, if this sensor doesn’t support the subfunction.

Converts lcrit_hyst and writes it to this temp’s lcrit_hyst subfunction. Returns an error, if this sensor doesn’t support the subfunction.

Implementors