Struct omnisensor::external::ExternalSensorConfig
source · [−]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: StringSensor name.
kind: SensorTypeSensor type.
minvalue: f64Minimum sensor reading value.
maxvalue: f64Maximum 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: PowerStateHost power state in which this sensor is active.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ExternalSensorConfig
impl Send for ExternalSensorConfig
impl Sync for ExternalSensorConfig
impl Unpin for ExternalSensorConfig
impl UnwindSafe for ExternalSensorConfig
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