Struct follow_heating::brain::modes::heating_mode::SharedData
source · pub struct SharedData {
pub last_successful_contact: Instant,
pub fallback_working_range: FallbackWorkingRange,
pub entered_state: Instant,
pub last_wiser_state: HeatingState,
}
Expand description
Data that is used shared between multiple states.
Fields§
§last_successful_contact: Instant
§fallback_working_range: FallbackWorkingRange
§entered_state: Instant
§last_wiser_state: HeatingState
Implementations§
pub fn new(working_range: FallbackWorkingRange) -> Self
pub fn notify_entered_state(&mut self)
pub fn get_entered_state(&self) -> Instant
pub fn get_fallback_working_range(&mut self) -> &mut FallbackWorkingRange
Auto Trait Implementations§
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