pub struct PECISensorConfig {
    name: String,
    cpuid: u64,
    bus: u64,
    address: u64,
    dts_crit_offset: f64,
    thresholds: Vec<ThresholdConfig>,
}
Expand description

Internal representation of the dbus config data for a PECI sensor.

Aside from what’s here, there’s also a "PresenceGPIO" key in a few E-M configs:

"PresenceGPIO": [{ "Name": "...", "Polarity": "..."}]

It seems to be ignored by intelcpusensor as far as I can tell though, so we’re ignoring it here too (for now at least). (Also, it’s not clear to me why the object is wrapped in an array.)

Fields

name: String

Name of the sensor.

FIXME: Is this used for anything? Need to figure this out.

cpuid: u64

The ID number of the CPU.

FIXME: Is this used for anything? Need to figure this out.

bus: u64

The PECI bus number of the CPU.

address: u64

The PECI address of the CPU.

dts_crit_offset: f64

The DTS critical offset if provided, 0.0 by default.

This is used as a threshold hysteresis value that optionally overrides what the kernel provides.

thresholds: Vec<ThresholdConfig>

Threshold settings for the sensor.

At least in intelcpusensor, the threshold information in sysfs is ignored if any of these are provided.

Implementations

Construct a PECISensorConfig from raw dbus data.

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.