pub struct ExternalSensorConfig {
    name: String,
    kind: SensorType,
    minvalue: f64,
    maxvalue: f64,
    timeout: Option<Duration>,
    thresholds: Vec<ThresholdConfig>,
    power_state: PowerState,
}
Expand description

Internal representation of the dbus config data for an external sensor.

Fields

name: String

Sensor name.

kind: SensorType

Sensor type.

minvalue: f64

Minimum sensor reading value.

maxvalue: f64

Maximum sensor reading value.

timeout: Option<Duration>

Maximum time allowed between updates until data is considered stale.

thresholds: Vec<ThresholdConfig>

Threshold settings for the sensor.

power_state: PowerState

Host power state in which this sensor is active.

Implementations

Construct an ExternalSensorConfig 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.