Enum follow_heating::brain::modes::heating_mode::HeatingMode
source · pub enum HeatingMode {
Off(OffMode),
TurningOn(TurningOnMode),
On(OnMode),
Mixed(MixedMode),
PreCirculate(PreCirculateMode),
Equalise(EqualiseMode),
TryCirculate(TryCirculateMode),
Circulate(CirculateMode),
DhwOnly(DhwOnlyMode),
}
Variants§
Off(OffMode)
Everything off
TurningOn(TurningOnMode)
Heat pump turning on, pump going but no heating is happening.
On(OnMode)
Heat pump fully on, circulation pump also going.
Mixed(MixedMode)
Both heating and hot water.
PreCirculate(PreCirculateMode)
First step in chain PreCirculate -> TryCirculate -> Circulate Let heat dissipate slightly out of radiators before circulating
Equalise(EqualiseMode)
Circulate the heating but not the tank to get a good reading
TryCirculate(TryCirculateMode)
Circulate for a short time in order to get a good temperature reading
Circulate(CirculateMode)
Turn off the heat pump and run through tank until we reach the bottom of the working temperature.
DhwOnly(DhwOnlyMode)
Heat the hot water up to a certain temperature.
Implementations§
source§impl HeatingMode
impl HeatingMode
pub fn off() -> Self
pub fn update( &mut self, _shared_data: &mut SharedData, rt: &Runtime, config: &PythonBrainConfig, io_bundle: &mut IOBundle, info_cache: &mut InfoCache, time_provider: &impl TimeProvider ) -> Result<Option<HeatingMode>, BrainFailure>
pub fn enter( &mut self, config: &PythonBrainConfig, runtime: &Runtime, io_bundle: &mut IOBundle ) -> Result<(), BrainFailure>
pub fn exit_to( self, next_heating_mode: &HeatingMode, io_bundle: &mut IOBundle ) -> Result<(), BrainFailure>
pub fn transition_to( &mut self, to: HeatingMode, config: &PythonBrainConfig, rt: &Runtime, io_bundle: &mut IOBundle ) -> Result<(), BrainFailure>
pub fn get_entry_preferences(&self) -> &EntryPreferences
Trait Implementations§
source§impl Debug for HeatingMode
impl Debug for HeatingMode
source§impl PartialEq for HeatingMode
impl PartialEq for HeatingMode
source§fn eq(&self, other: &HeatingMode) -> bool
fn eq(&self, other: &HeatingMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HeatingMode
Auto Trait Implementations§
impl RefUnwindSafe for HeatingMode
impl Send for HeatingMode
impl Sync for HeatingMode
impl Unpin for HeatingMode
impl UnwindSafe for HeatingMode
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