#[non_exhaustive]#[repr(i32)]pub enum TemperatureSensorKind {
Disabled = 0,
CPUDiode = 1,
Transistor = 2,
ThermalDiode = 3,
Thermistor = 4,
AMDAMDSI = 5,
IntelPECI = 6,
}Expand description
Type of a temperature sensor.
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.
Disabled = 0
CPUDiode = 1
Transistor = 2
ThermalDiode = 3
Thermistor = 4
AMDAMDSI = 5
IntelPECI = 6
Implementations§
Trait Implementations§
Source§impl Clone for TemperatureSensorKind
impl Clone for TemperatureSensorKind
Source§fn clone(&self) -> TemperatureSensorKind
fn clone(&self) -> TemperatureSensorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TemperatureSensorKind
impl Debug for TemperatureSensorKind
Source§impl Default for TemperatureSensorKind
impl Default for TemperatureSensorKind
Source§impl Display for TemperatureSensorKind
impl Display for TemperatureSensorKind
Source§impl From<TemperatureSensorKind> for i32
impl From<TemperatureSensorKind> for i32
Source§fn from(enum_value: TemperatureSensorKind) -> Self
fn from(enum_value: TemperatureSensorKind) -> Self
Converts to this type from the input type.
Source§impl Ord for TemperatureSensorKind
impl Ord for TemperatureSensorKind
Source§fn cmp(&self, other: &TemperatureSensorKind) -> Ordering
fn cmp(&self, other: &TemperatureSensorKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TemperatureSensorKind
impl PartialEq for TemperatureSensorKind
Source§impl PartialOrd for TemperatureSensorKind
impl PartialOrd for TemperatureSensorKind
Source§impl TryFrom<i32> for TemperatureSensorKind
impl TryFrom<i32> for TemperatureSensorKind
Source§type Error = TryFromPrimitiveError<TemperatureSensorKind>
type Error = TryFromPrimitiveError<TemperatureSensorKind>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for TemperatureSensorKind
impl TryFromPrimitive for TemperatureSensorKind
const NAME: &'static str = "TemperatureSensorKind"
type Primitive = i32
type Error = TryFromPrimitiveError<TemperatureSensorKind>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for TemperatureSensorKind
impl Eq for TemperatureSensorKind
impl StructuralPartialEq for TemperatureSensorKind
Auto Trait Implementations§
impl Freeze for TemperatureSensorKind
impl RefUnwindSafe for TemperatureSensorKind
impl Send for TemperatureSensorKind
impl Sync for TemperatureSensorKind
impl Unpin for TemperatureSensorKind
impl UnwindSafe for TemperatureSensorKind
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