Struct AppLifecycleController
pub struct AppLifecycleController { /* private fields */ }Implementations§
§impl AppLifecycleController
impl AppLifecycleController
pub fn lifecycle(&self) -> AppLifecycle
pub fn is_running(&self) -> bool
pub fn is_started(&self) -> bool
pub fn should_exit(&self, res: &Resources) -> Option<AppExit>
pub fn update(&mut self, res: &mut Resources) -> Option<AppExit>
pub fn start(&mut self, res: &mut Resources) -> bool
pub fn resume(&mut self, res: &mut Resources) -> bool
pub fn suspend(&mut self, res: &mut Resources) -> bool
pub fn stop(&mut self, res: &mut Resources, app_exit: AppExit) -> AppExit
Trait Implementations§
§impl FromResourcesMut for AppLifecycleController
impl FromResourcesMut for AppLifecycleController
fn from_resources_mut(res: &mut Resources) -> Self
Auto Trait Implementations§
impl Freeze for AppLifecycleController
impl RefUnwindSafe for AppLifecycleController
impl Send for AppLifecycleController
impl Sync for AppLifecycleController
impl Unpin for AppLifecycleController
impl UnwindSafe for AppLifecycleController
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