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§

source

fn enter( &mut self, config: &PythonBrainConfig, runtime: &Runtime, io_bundle: &mut IOBundle ) -> Result<(), BrainFailure>

source

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.

Implementors§