#[non_exhaustive]#[repr(u32)]pub enum Kind {
Show 87 variants
VoltageInput = 0,
VoltageMinimum = 1,
VoltageMaximum = 2,
VoltageLCritical = 3,
VoltageCritical = 4,
VoltageAverage = 5,
VoltageLowest = 6,
VoltageHighest = 7,
VoltageAlarm = 128,
VoltageMinimumAlarm = 129,
VoltageMaximumAlarm = 130,
VoltageBeep = 131,
VoltageLCriticalAlarm = 132,
VoltageCriticalAlarm = 133,
FanInput = 256,
FanMinimum = 257,
FanMaximum = 258,
FanAlarm = 384,
FanFault = 385,
FanDivisor = 386,
FanBeep = 387,
FanPulses = 388,
FanMinimumAlarm = 389,
FanMaximumAlarm = 390,
TemperatureInput = 512,
TemperatureMaximum = 513,
TemperatureMaximumHysteresis = 514,
TemperatureMinimum = 515,
TemperatureCritical = 516,
TemperatureCriticalHysteresis = 517,
TemperatureLCritical = 518,
TemperatureEmergency = 519,
TemperatureEmergencyHysteresis = 520,
TemperatureLowest = 521,
TemperatureHighest = 522,
TemperatureMinimumHysteresis = 523,
TemperatureLCriticalHysteresis = 524,
TemperatureAlarm = 640,
TemperatureMaximumAlarm = 641,
TemperatureMinimumAlarm = 642,
TemperatureCriticalAlarm = 643,
TemperatureFault = 644,
TemperatureType = 645,
TemperatureOffset = 646,
TemperatureBeep = 647,
TemperatureEmergencyAlarm = 648,
TemperatureLCriticalAlarm = 649,
PowerAverage = 768,
PowerAverageHighest = 769,
PowerAverageLowest = 770,
PowerInput = 771,
PowerInputHighest = 772,
PowerInputLowest = 773,
PowerCap = 774,
PowerCapHysteresis = 775,
PowerMaximum = 776,
PowerCritical = 777,
PowerMinimum = 778,
PowerLCritical = 779,
PowerAverageInterval = 896,
PowerAlarm = 897,
PowerCapAlarm = 898,
PowerMaximumAlarm = 899,
PowerCriticalAlarm = 900,
PowerMinimumAlarm = 901,
PowerLCriticalAlarm = 902,
EnergyInput = 1_024,
CurrentInput = 1_280,
CurrentMinimum = 1_281,
CurrentMaximum = 1_282,
CurrentLCritical = 1_283,
CurrentCritical = 1_284,
CurrentAverage = 1_285,
CurrentLowest = 1_286,
CurrentHighest = 1_287,
CurrentAlarm = 1_408,
CurrentMinimumAlarm = 1_409,
CurrentMaximumAlarm = 1_410,
CurrentBeep = 1_411,
CurrentLCriticalAlarm = 1_412,
CurrentCriticalAlarm = 1_413,
HumidityInput = 1_536,
VoltageID = 4_096,
IntrusionAlarm = 4_352,
IntrusionBeep = 4_353,
BeepEnable = 6_144,
Unknown = 2_147_483_647,
}Expand description
Type of the value of a sensor or actuator.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
VoltageInput = 0
VoltageMinimum = 1
VoltageMaximum = 2
VoltageLCritical = 3
VoltageCritical = 4
VoltageAverage = 5
VoltageLowest = 6
VoltageHighest = 7
VoltageAlarm = 128
VoltageMinimumAlarm = 129
VoltageMaximumAlarm = 130
VoltageBeep = 131
VoltageLCriticalAlarm = 132
VoltageCriticalAlarm = 133
FanInput = 256
FanMinimum = 257
FanMaximum = 258
FanAlarm = 384
FanFault = 385
FanDivisor = 386
FanBeep = 387
FanPulses = 388
FanMinimumAlarm = 389
FanMaximumAlarm = 390
TemperatureInput = 512
TemperatureMaximum = 513
TemperatureMaximumHysteresis = 514
TemperatureMinimum = 515
TemperatureCritical = 516
TemperatureCriticalHysteresis = 517
TemperatureLCritical = 518
TemperatureEmergency = 519
TemperatureEmergencyHysteresis = 520
TemperatureLowest = 521
TemperatureHighest = 522
TemperatureMinimumHysteresis = 523
TemperatureLCriticalHysteresis = 524
TemperatureAlarm = 640
TemperatureMaximumAlarm = 641
TemperatureMinimumAlarm = 642
TemperatureCriticalAlarm = 643
TemperatureFault = 644
TemperatureType = 645
TemperatureOffset = 646
TemperatureBeep = 647
TemperatureEmergencyAlarm = 648
TemperatureLCriticalAlarm = 649
PowerAverage = 768
PowerAverageHighest = 769
PowerAverageLowest = 770
PowerInput = 771
PowerInputHighest = 772
PowerInputLowest = 773
PowerCap = 774
PowerCapHysteresis = 775
PowerMaximum = 776
PowerCritical = 777
PowerMinimum = 778
PowerLCritical = 779
PowerAverageInterval = 896
PowerAlarm = 897
PowerCapAlarm = 898
PowerMaximumAlarm = 899
PowerCriticalAlarm = 900
PowerMinimumAlarm = 901
PowerLCriticalAlarm = 902
EnergyInput = 1_024
CurrentInput = 1_280
CurrentMinimum = 1_281
CurrentMaximum = 1_282
CurrentLCritical = 1_283
CurrentCritical = 1_284
CurrentAverage = 1_285
CurrentLowest = 1_286
CurrentHighest = 1_287
CurrentAlarm = 1_408
CurrentMinimumAlarm = 1_409
CurrentMaximumAlarm = 1_410
CurrentBeep = 1_411
CurrentLCriticalAlarm = 1_412
CurrentCriticalAlarm = 1_413
HumidityInput = 1_536
VoltageID = 4_096
IntrusionAlarm = 4_352
IntrusionBeep = 4_353
BeepEnable = 6_144
Unknown = 2_147_483_647
Implementations§
Source§impl Kind
impl Kind
Sourcepub fn from_raw(kind: c_uint) -> Option<Self>
pub fn from_raw(kind: c_uint) -> Option<Self>
Return an instance from one of the SENSORS_SUBFEATURE_* values,
e.g., SENSORS_SUBFEATURE_TEMP_INPUT.
Sourcepub fn as_raw(self) -> c_uint
pub fn as_raw(self) -> c_uint
Return one of the SENSORS_SUBFEATURE_* values
(e.g., SENSORS_SUBFEATURE_TEMP_INPUT) equivalent to this instance.
Trait Implementations§
Source§impl Ord for Kind
impl Ord for Kind
Source§impl PartialOrd for Kind
impl PartialOrd for Kind
Source§impl TryFromPrimitive for Kind
impl TryFromPrimitive for Kind
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more