pub struct AppState {
pub in_foreground: bool,
pub is_finishing: bool,
pub is_destroyed: Option<bool>,
pub package_name: Option<String>,
}
Expand description
Current state of the application
Fields§
§in_foreground: bool
Whether the app is currently in the foreground
is_finishing: bool
Whether the app is in the process of finishing
is_destroyed: Option<bool>
Whether the app has been destroyed (Android API 17+)
package_name: Option<String>
The app’s package name
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppState
impl<'de> Deserialize<'de> for AppState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AppState
impl RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin 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