/// Contains application state.
#[derive(Default)]pubstructApplicationLifecycle{is_exiting:bool,
}implApplicationLifecycle{/// Instructs the application to exit.
pubfnexit(&mutself){self.is_exiting =true;}/// Whether the application is exiting or not.
pubfnis_exiting(&self)->bool{self.is_exiting
}}