#[non_exhaustive]pub struct Status {
pub frames: u32,
pub phase: Phase,
pub errors: Option<String>,
pub screens: Vec<String>,
pub top_screen: String,
pub suspended: bool,
pub focused: bool,
pub quit: bool,
}Expand description
Where a running build is.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.frames: u32The frames run: App::frame_number.
phase: PhaseLoading, running or failed.
errors: Option<String>Why the game didn’t load, if it failed.
screens: Vec<String>The open screens, bottom first.
top_screen: StringThe top screen’s name; empty with none open.
suspended: boolWhether the system has suspended the game.
focused: boolWhether its window has the player’s attention.
quit: boolWhether the game has quit.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Status
impl<'de> Deserialize<'de> for Status
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
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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