pub struct Hvac { /* private fields */ }
Expand description
hvac state machine
Implementations
sourceimpl Hvac
impl Hvac
sourcepub fn with_heat(
self,
min_run_seconds: Option<u32>,
min_recover_seconds: Option<u32>
) -> Self
pub fn with_heat(
self,
min_run_seconds: Option<u32>,
min_recover_seconds: Option<u32>
) -> Self
use custom heat run and recover time constraints
sourcepub fn with_cool(
self,
min_run_seconds: Option<u32>,
min_recover_seconds: Option<u32>
) -> Self
pub fn with_cool(
self,
min_run_seconds: Option<u32>,
min_recover_seconds: Option<u32>
) -> Self
use custom cool run and recover time constraints
sourcepub fn with_fan(
self,
min_run_seconds: Option<u32>,
min_recover_seconds: Option<u32>
) -> Self
pub fn with_fan(
self,
min_run_seconds: Option<u32>,
min_recover_seconds: Option<u32>
) -> Self
use custom fan run and recover time constraints
sourcepub fn tick(&mut self, current_seconds: u32) -> HvacState
pub fn tick(&mut self, current_seconds: u32) -> HvacState
update the state machine with new seconds elappsed value
sourcepub fn heat(&mut self) -> HvacState
pub fn heat(&mut self) -> HvacState
update state machine with a call for heat, disabling call for cool in the process
sourcepub fn cool(&mut self) -> HvacState
pub fn cool(&mut self) -> HvacState
update state machine with call for cool, disabling call for heat in the process
Trait Implementations
sourceimpl Ord for Hvac
impl Ord for Hvac
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<Hvac> for Hvac
impl PartialOrd<Hvac> for Hvac
sourcefn partial_cmp(&self, other: &Hvac) -> Option<Ordering>
fn partial_cmp(&self, other: &Hvac) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Hvac
impl Eq for Hvac
impl StructuralEq for Hvac
impl StructuralPartialEq for Hvac
Auto Trait Implementations
impl RefUnwindSafe for Hvac
impl Send for Hvac
impl Sync for Hvac
impl Unpin for Hvac
impl UnwindSafe for Hvac
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more