Struct follow_heating::brain::python_like::PythonBrain
source · pub struct PythonBrain {
config: PythonBrainConfig,
heating_mode: Option<HeatingMode>,
shared_data: SharedData,
applied_boosts: AppliedBoosts,
just_reloaded: bool,
}
Fields§
§config: PythonBrainConfig
§heating_mode: Option<HeatingMode>
The current state. None if just started and need to figure out what state to be in.
applied_boosts: AppliedBoosts
§just_reloaded: bool
Whether we just reloaded / just restarted This is used to print additional one-time debugging information.
Implementations§
source§impl PythonBrain
impl PythonBrain
pub fn new(config: PythonBrainConfig) -> Self
fn provide_debug_info( &mut self, io_bundle: &mut IOBundle, time_provider: &impl TimeProvider ) -> Result<(), BrainFailure>
Trait Implementations§
source§impl Brain for PythonBrain
impl Brain for PythonBrain
fn run( &mut self, runtime: &Runtime, io_bundle: &mut IOBundle, time_provider: &impl TimeProvider ) -> Result<(), BrainFailure>
fn reload_config(&mut self)
Auto Trait Implementations§
impl RefUnwindSafe for PythonBrain
impl Send for PythonBrain
impl Sync for PythonBrain
impl Unpin for PythonBrain
impl UnwindSafe for PythonBrain
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