pub enum AppState {
Foreground,
Background,
}Expand description
Whether the app is in front of the user.
Variants§
Foreground
The app is in front of the user; sent as foreground.
Background
The app runs in the background; sent as background.
Trait Implementations§
impl Copy for AppState
impl Eq 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