#[repr(u8)]pub enum EnergyPriority {
Comfort = 0,
Speed = 1,
Efficiency = 2,
Waterconsumption = 3,
}Variants§
Comfort = 0
User comfort
Speed = 1
Speed of operation
Efficiency = 2
Amount of Energy consumed by the device
Waterconsumption = 3
Amount of water consumed by the device
Implementations§
Trait Implementations§
Source§impl Clone for EnergyPriority
impl Clone for EnergyPriority
Source§fn clone(&self) -> EnergyPriority
fn clone(&self) -> EnergyPriority
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 EnergyPriority
impl Debug for EnergyPriority
Source§impl<'de> Deserialize<'de> for EnergyPriority
impl<'de> Deserialize<'de> for EnergyPriority
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<EnergyPriority> for u8
impl From<EnergyPriority> for u8
Source§fn from(val: EnergyPriority) -> Self
fn from(val: EnergyPriority) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EnergyPriority
impl PartialEq for EnergyPriority
Source§impl Serialize for EnergyPriority
impl Serialize for EnergyPriority
impl Copy for EnergyPriority
impl Eq for EnergyPriority
impl StructuralPartialEq for EnergyPriority
Auto Trait Implementations§
impl Freeze for EnergyPriority
impl RefUnwindSafe for EnergyPriority
impl Send for EnergyPriority
impl Sync for EnergyPriority
impl Unpin for EnergyPriority
impl UnwindSafe for EnergyPriority
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