Struct follow_heating::brain::modes::InfoCache
source · pub struct InfoCache {
heating_state: HeatingState,
temps: Option<Result<HashMap<Sensor, f32>, String>>,
working_temp_range: WorkingRange,
working_temp_range_printed: AtomicBool,
}
Fields§
§heating_state: HeatingState
§temps: Option<Result<HashMap<Sensor, f32>, String>>
§working_temp_range: WorkingRange
§working_temp_range_printed: AtomicBool
Implementations§
source§impl InfoCache
impl InfoCache
pub fn create(heating_state: HeatingState, working_range: WorkingRange) -> Self
pub fn heating_on(&self) -> bool
sourcepub fn heating_state(&self) -> &HeatingState
pub fn heating_state(&self) -> &HeatingState
Whether the wiser is calling for space heating
pub fn get_working_temp_range(&self) -> WorkingRange
pub async fn get_temps( &mut self, temperature_manager: &dyn TemperatureManager ) -> Result<HashMap<Sensor, f32>, String>
Auto Trait Implementations§
impl RefUnwindSafe for InfoCache
impl Send for InfoCache
impl Sync for InfoCache
impl Unpin for InfoCache
impl UnwindSafe for InfoCache
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