pub enum LifecycleEvent {
Resumed,
Paused,
LowMemory,
Terminated,
}Expand description
Mobile / desktop application lifecycle state transitions.
Variants§
Resumed
Application resumed foreground activity.
Paused
Application moved to background / inactive state.
LowMemory
Operating system signaled low-memory pressure.
Terminated
Application is terminating.
Trait Implementations§
Source§impl Clone for LifecycleEvent
impl Clone for LifecycleEvent
impl Copy for LifecycleEvent
Source§impl Debug for LifecycleEvent
impl Debug for LifecycleEvent
impl Eq for LifecycleEvent
Source§impl Hash for LifecycleEvent
impl Hash for LifecycleEvent
Source§impl Ord for LifecycleEvent
impl Ord for LifecycleEvent
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 PartialEq for LifecycleEvent
impl PartialEq for LifecycleEvent
Source§impl PartialOrd for LifecycleEvent
impl PartialOrd for LifecycleEvent
impl StructuralPartialEq for LifecycleEvent
Auto Trait Implementations§
impl Forget for LifecycleEvent
impl Freeze for LifecycleEvent
impl Move for LifecycleEvent
impl RefUnwindSafe for LifecycleEvent
impl Send for LifecycleEvent
impl Sync for LifecycleEvent
impl Unpin for LifecycleEvent
impl UnsafeUnpin for LifecycleEvent
impl UnwindSafe for LifecycleEvent
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