Struct omnisensor::hwmon::HwmonSensorConfig
source · [−]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
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for HwmonSensorConfig
impl Send for HwmonSensorConfig
impl Sync for HwmonSensorConfig
impl Unpin for HwmonSensorConfig
impl UnwindSafe for HwmonSensorConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more