pub struct OffMode {}
Expand description
Mode that represents where everything is off The program can be safely terminated when in this mode.
Trait Implementations§
source§impl Mode for OffMode
impl Mode for OffMode
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>
source§impl PartialEq for OffMode
impl PartialEq for OffMode
impl StructuralPartialEq for OffMode
Auto Trait Implementations§
impl RefUnwindSafe for OffMode
impl Send for OffMode
impl Sync for OffMode
impl Unpin for OffMode
impl UnwindSafe for OffMode
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