Enum AppLifecycle
pub enum AppLifecycle {
Created,
Starting,
Resuming,
Running,
Suspending,
Suspended,
Stopping(AppExit),
Stopped(AppExit),
}Expand description
Enum describing the lifecycle state of the application.
[CREATED] -> STARTING --> RESUMING --> [RUNNING]
| ^ |
v | v
[STOPPED] <- STOPPING <- [SUSPENDED] <- SUSPENDINGVariants§
Created
The application has been created and is not started yet.
Starting
The application is starting up. (running the StartupSchedule)
Resuming
The application is resuming from a suspended state or starting up. (running the ResumeSchedule)
Running
The application is running. (running Schedule, MainSchedule and FixedMainSchedule)
Suspending
The application is suspending. (running the SuspendSchedule)
Suspended
The application is suspended. (running the Schedule)
Stopping(AppExit)
The application is stopping. (running the StopSchedule)
Stopped(AppExit)
The application has Stopped.
Implementations§
§impl AppLifecycle
impl AppLifecycle
pub fn is_running(self) -> bool
pub fn is_suspended(self) -> bool
pub fn is_started(self) -> bool
pub fn is_stopped(self) -> bool
Trait Implementations§
§impl Clone for AppLifecycle
impl Clone for AppLifecycle
§fn clone(&self) -> AppLifecycle
fn clone(&self) -> AppLifecycle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for AppLifecycle
impl Debug for AppLifecycle
§impl Default for AppLifecycle
impl Default for AppLifecycle
§fn default() -> AppLifecycle
fn default() -> AppLifecycle
Returns the “default value” for a type. Read more
§impl Hash for AppLifecycle
impl Hash for AppLifecycle
§impl Ord for AppLifecycle
impl Ord for AppLifecycle
§impl PartialEq for AppLifecycle
impl PartialEq for AppLifecycle
§impl PartialOrd for AppLifecycle
impl PartialOrd for AppLifecycle
impl Copy for AppLifecycle
impl Eq for AppLifecycle
impl StructuralPartialEq for AppLifecycle
Auto Trait Implementations§
impl Freeze for AppLifecycle
impl RefUnwindSafe for AppLifecycle
impl Send for AppLifecycle
impl Sync for AppLifecycle
impl Unpin for AppLifecycle
impl UnwindSafe for AppLifecycle
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