#[non_exhaustive]pub enum Temperature {
Cold,
Warm,
Hot,
}Expand description
Sensor thermal state (FpTemperature); some sensors throttle when warm/hot.
#[non_exhaustive]: FpTemperature is an external vocabulary that could grow.
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.
Cold
FP_TEMPERATURE_COLD: the device can run indefinitely.
Warm
FP_TEMPERATURE_WARM: the device can run for a limited time before it must cool.
Hot
FP_TEMPERATURE_HOT: the device must cool down; operations are throttled or refused.
Trait Implementations§
Source§impl Clone for Temperature
impl Clone for Temperature
impl Copy for Temperature
Source§impl Debug for Temperature
impl Debug for Temperature
impl Eq for Temperature
Source§impl PartialEq for Temperature
impl PartialEq for Temperature
impl StructuralPartialEq for Temperature
Auto Trait Implementations§
impl Freeze for Temperature
impl RefUnwindSafe for Temperature
impl Send for Temperature
impl Sync for Temperature
impl Unpin for Temperature
impl UnsafeUnpin for Temperature
impl UnwindSafe for Temperature
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