#[non_exhaustive]pub enum SensorKind {
Cpu,
Gpu,
Storage,
Battery,
Ambient,
Other,
}Expand description
What a sensor measures.
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.
Cpu
The CPU package or a core.
Gpu
A graphics adapter.
Storage
A drive.
Battery
A battery.
Ambient
The board, the chassis, or an ACPI zone.
Other
Anything else.
Implementations§
Trait Implementations§
Source§impl Clone for SensorKind
impl Clone for SensorKind
impl Copy for SensorKind
Source§impl Debug for SensorKind
impl Debug for SensorKind
impl Eq for SensorKind
Source§impl Hash for SensorKind
impl Hash for SensorKind
Source§impl PartialEq for SensorKind
impl PartialEq for SensorKind
impl StructuralPartialEq for SensorKind
Auto Trait Implementations§
impl Forget for SensorKind
impl Freeze for SensorKind
impl Move for SensorKind
impl RefUnwindSafe for SensorKind
impl Send for SensorKind
impl Sync for SensorKind
impl Unpin for SensorKind
impl UnsafeUnpin for SensorKind
impl UnwindSafe for SensorKind
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