Trait follow_heating::brain::modes::Mode
source · pub trait Mode: PartialEq {
// Required methods
fn enter(
&mut self,
config: &PythonBrainConfig,
runtime: &Runtime,
io_bundle: &mut IOBundle
) -> Result<(), BrainFailure>;
fn update(
&mut self,
rt: &Runtime,
config: &PythonBrainConfig,
info_cache: &mut InfoCache,
io_bundle: &mut IOBundle,
time: &impl TimeProvider
) -> Result<Intention, BrainFailure>;
}
Required Methods§
fn enter( &mut self, config: &PythonBrainConfig, runtime: &Runtime, io_bundle: &mut IOBundle ) -> Result<(), BrainFailure>
fn update( &mut self, rt: &Runtime, config: &PythonBrainConfig, info_cache: &mut InfoCache, io_bundle: &mut IOBundle, time: &impl TimeProvider ) -> Result<Intention, BrainFailure>
Object Safety§
This trait is not object safe.