pub struct FanSensorConfig {
    index: u64,
    name: String,
    power_state: PowerState,
    subtype: FanSensorType,
    thresholds: Vec<ThresholdConfig>,
    minreading: f64,
    maxreading: f64,
}
Expand description

Internal representation of fan sensor config data from dbus.

Fields

index: u64

Index of this particular sensor (channel) within the containing hardware device.

name: String

Sensor name.

power_state: PowerState

Host power state in which this sensor is active.

subtype: FanSensorType

Sub-type of fan sensor.

thresholds: Vec<ThresholdConfig>

Threshold settings for the sensor.

minreading: f64

Minimum reading value for the sensor.

maxreading: f64

Maximum reading value for the sensor.

Implementations

Construct a FanSensorConfig from raw dbus config 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.