#[non_exhaustive]#[repr(u32)]pub enum Kind {
Voltage = 0,
Fan = 1,
Temperature = 2,
Power = 3,
Energy = 4,
Current = 5,
Humidity = 6,
VoltageID = 16,
Intrusion = 17,
BeepEnable = 24,
Unknown = 2_147_483_647,
}Expand description
Type of a sensor or actuator (a.k.a., feature) controlled by a chip.
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.
Voltage = 0
Fan = 1
Temperature = 2
Power = 3
Energy = 4
Current = 5
Humidity = 6
VoltageID = 16
Intrusion = 17
BeepEnable = 24
Unknown = 2_147_483_647
Implementations§
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