Struct follow_heating::config::ControlConfig
source · pub struct ControlConfig {
valve_start_open_secs: Duration,
valve_change_secs: Duration,
pump_water_slow_secs: Duration,
extra_heat_pump_water_slow_secs: Duration,
}
Fields§
§valve_start_open_secs: Duration
How long to wait (in seconds) for a valve to start opening before waiting [valve_change_sleep] seconds The total time given for the valve to open [valve_start_open_sleep] + [valve_change_sleep]
valve_change_secs: Duration
The amount of time to wait for a valve to open / close, in addition to [valve_start_open]. This time is waited for all valves (opening and closing).
pump_water_slow_secs: Duration
The amount of time to wait after a pump stops before playing with valves
extra_heat_pump_water_slow_secs: Duration
The extra amount of time to wait for water to slow compared to [pump_water_slow_secs]
Implementations§
source§impl ControlConfig
impl ControlConfig
pub fn get_valve_start_open_time(&self) -> &Duration
pub fn get_valve_change_time(&self) -> &Duration
pub fn get_pump_water_slow_time(&self) -> &Duration
pub fn get_heat_pump_water_slow_time(&self) -> &Duration
Trait Implementations§
source§impl Clone for ControlConfig
impl Clone for ControlConfig
source§fn clone(&self) -> ControlConfig
fn clone(&self) -> ControlConfig
Returns a copy 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 Default for ControlConfig
impl Default for ControlConfig
source§impl<'de> Deserialize<'de> for ControlConfig
impl<'de> Deserialize<'de> for ControlConfig
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
Auto Trait Implementations§
impl RefUnwindSafe for ControlConfig
impl Send for ControlConfig
impl Sync for ControlConfig
impl Unpin for ControlConfig
impl UnwindSafe for ControlConfig
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