pub struct HwmonSensorConfig {
    names: Vec<String>,
    name_overrides: HashMap<String, String>,
    i2c: I2CDeviceParams,
    poll_interval: Duration,
    power_state: PowerState,
    thresholds: Vec<ThresholdConfig>,
    enabled_labels: FilterSet<String>,
}
Expand description

Internal representation of dbus config data for an I2C/PMBus hwmon sensor.

Fields

names: Vec<String>

The sensor names used for the channels of this sensor.

name_overrides: HashMap<String, String>

Alternate names provided by "<foo>_Name" config keys.

i2c: I2CDeviceParams

I2C parameters for the sensor.

poll_interval: Duration

Polling interval for the sensor.

power_state: PowerState

Host power state in which this sensor is active.

thresholds: Vec<ThresholdConfig>

Threshold settings for the sensor.

enabled_labels: FilterSet<String>

Which channel labels are enabled (i.e. should have a sensor created for them).

Implementations

Construct a HwmonSensorConfig from raw dbus config data.

Determine the sensor name to use for a given idx and label.

Trait Implementations

Formats the value using the given formatter. Read more

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.