[][src]Trait libmedium::sensors::TempSensor

pub trait TempSensor: Sensor<Value = Temperature> + Enable + Input + Min + Max + Crit + LowCrit + Faulty + Debug {
    pub fn read_type(&self) -> Result<TempType, Error> { ... }
pub fn read_offset(&self) -> Result<Temperature, Error> { ... }
pub fn read_max_hyst(&self) -> Result<Temperature, Error> { ... }
pub fn read_min_hyst(&self) -> Result<Temperature, Error> { ... }
pub fn read_crit_hyst(&self) -> Result<Temperature, Error> { ... }
pub fn read_emergency(&self) -> Result<Temperature, Error> { ... }
pub fn read_emergency_hyst(&self) -> Result<Temperature, Error> { ... }
pub fn read_lcrit_hyst(&self) -> Result<Temperature, Error> { ... } }

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

Provided methods

pub fn read_type(&self) -> Result<TempType, Error>[src]

Reads the type subfunction of this temp sensor. Returns an error, if this sensor doesn't support the subfunction.

pub fn read_offset(&self) -> Result<Temperature, Error>[src]

Reads the offset subfunction of this temp sensor. Returns an error, if this sensor doesn't support the subfunction.

pub fn read_max_hyst(&self) -> Result<Temperature, Error>[src]

Reads the max_hyst subfunction of this temp sensor. Returns an error, if this sensor doesn't support the subfunction.

pub fn read_min_hyst(&self) -> Result<Temperature, Error>[src]

Reads the min_hyst subfunction of this temp sensor. Returns an error, if this sensor doesn't support the subfunction.

pub fn read_crit_hyst(&self) -> Result<Temperature, Error>[src]

Reads the crit_hyst subfunction of this temp sensor. Returns an error, if this sensor doesn't support the subfunction.

pub fn read_emergency(&self) -> Result<Temperature, Error>[src]

Reads the emergency subfunction of this temp sensor. Returns an error, if this sensor doesn't support the subfunction.

pub fn read_emergency_hyst(&self) -> Result<Temperature, Error>[src]

Reads the emergency_hyst subfunction of this temp sensor. Returns an error, if this sensor doesn't support the subfunction.

pub fn read_lcrit_hyst(&self) -> Result<Temperature, Error>[src]

Reads the lcrit_hyst subfunction of this temp sensor. Returns an error, if this sensor doesn't support the subfunction.

Loading content...

Implementors

Loading content...