#[repr(u8)]pub enum PresetScenario {
Occupied = 1,
Unoccupied = 2,
Sleep = 3,
Wake = 4,
Vacation = 5,
Goingtosleep = 6,
Userdefined = 254,
}Variants§
Occupied = 1
The thermostat-controlled area is occupied
Unoccupied = 2
The thermostat-controlled area is unoccupied
Sleep = 3
Users are likely to be sleeping
Wake = 4
Users are likely to be waking up
Vacation = 5
Users are on vacation
Goingtosleep = 6
Users are likely to be going to sleep
Userdefined = 254
Custom presets
Implementations§
Trait Implementations§
Source§impl Clone for PresetScenario
impl Clone for PresetScenario
Source§fn clone(&self) -> PresetScenario
fn clone(&self) -> PresetScenario
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 PresetScenario
impl Debug for PresetScenario
Source§impl<'de> Deserialize<'de> for PresetScenario
impl<'de> Deserialize<'de> for PresetScenario
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<PresetScenario> for u8
impl From<PresetScenario> for u8
Source§fn from(val: PresetScenario) -> Self
fn from(val: PresetScenario) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PresetScenario
impl PartialEq for PresetScenario
Source§impl Serialize for PresetScenario
impl Serialize for PresetScenario
impl Copy for PresetScenario
impl Eq for PresetScenario
impl StructuralPartialEq for PresetScenario
Auto Trait Implementations§
impl Freeze for PresetScenario
impl RefUnwindSafe for PresetScenario
impl Send for PresetScenario
impl Sync for PresetScenario
impl Unpin for PresetScenario
impl UnwindSafe for PresetScenario
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