pub enum AppState {
Active,
Inactive,
Background,
Terminated,
}Expand description
Canonical cross-platform application lifecycle state tracked identically on all 7 targets.
Variants§
Active
Application is visible in the foreground and receiving interactive input.
Inactive
Application is transitioning, occluded, or unfocused while still partially visible.
Background
Application is hidden or suspended in the background.
Terminated
Application is terminating or has shut down.
Trait Implementations§
impl Copy for AppState
impl Eq for AppState
Source§impl Ord for AppState
impl Ord for AppState
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for AppState
impl PartialOrd for AppState
impl StructuralPartialEq for AppState
Auto Trait Implementations§
impl Forget for AppState
impl Freeze for AppState
impl Move for AppState
impl RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl UnsafeUnpin for AppState
impl UnwindSafe for AppState
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