Struct follow_heating::brain::python_like::config::overrun_config::OverrunConfig
source · pub struct OverrunConfig {
pub slots: Vec<DhwBap>,
}
Fields§
§slots: Vec<DhwBap>
Implementations§
source§impl OverrunConfig
impl OverrunConfig
pub fn combine(&mut self, other: OverrunConfig)
fn _get_current_slots<'a>( &'a self, now: &DateTime<Utc> ) -> HashMap<Sensor, Vec<&'a DhwBap>>
pub fn find_matching_slot<T: PossibleTemperatureContainer>( &self, now: &DateTime<Utc>, temps: &T, matches: impl Fn(&DhwTemps, f32) -> bool ) -> Option<&DhwBap>
Trait Implementations§
source§impl AsRef<OverrunConfig> for PythonBrainConfig
impl AsRef<OverrunConfig> for PythonBrainConfig
source§fn as_ref(&self) -> &OverrunConfig
fn as_ref(&self) -> &OverrunConfig
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for OverrunConfig
impl Clone for OverrunConfig
source§fn clone(&self) -> OverrunConfig
fn clone(&self) -> OverrunConfig
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 Debug for OverrunConfig
impl Debug for OverrunConfig
source§impl Default for OverrunConfig
impl Default for OverrunConfig
source§fn default() -> OverrunConfig
fn default() -> OverrunConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for OverrunConfig
impl<'de> Deserialize<'de> for OverrunConfig
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 PartialEq for OverrunConfig
impl PartialEq for OverrunConfig
source§fn eq(&self, other: &OverrunConfig) -> bool
fn eq(&self, other: &OverrunConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OverrunConfig
Auto Trait Implementations§
impl RefUnwindSafe for OverrunConfig
impl Send for OverrunConfig
impl Sync for OverrunConfig
impl Unpin for OverrunConfig
impl UnwindSafe for OverrunConfig
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