pub enum SensorConfig {
    Hwmon(HwmonSensorConfig),
    ADC(ADCSensorConfig),
    Fan(FanSensorConfig),
    PECI(PECISensorConfig),
    External(ExternalSensorConfig),
}
Expand description

An enum of config data all supported sensor types.

Variants

Hwmon(HwmonSensorConfig)

ADC(ADCSensorConfig)

Fan(FanSensorConfig)

PECI(PECISensorConfig)

External(ExternalSensorConfig)

Implementations

Construct a SensorConfig from dbus properties props

props should be the entry for intf in all_intfs.

Returns:

  • Some(Ok(_)): successful parse.
  • Some(Err(_)): we tried to parse a config, but something was wrong with it.
  • None: intf isn’t a sensor configuration, no attempt at parsing.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.