pub struct RunnerWindowLifecycleSnapshot {
pub open_window_count: u32,
pub window_open_events: u64,
pub window_close_events: u64,
pub last_window_open_unix_ms: Option<u64>,
pub last_window_close_unix_ms: Option<u64>,
}Expand description
Diagnostics store for runner window lifecycle events (open/close).
Diagnostics scripts use window-count predicates (e.g. known_window_count_is) as a stable
signal that OS windows have been created/closed. Counting windows via input-context snapshots
is opportunistic (it depends on input dispatch), so the runner maintains a source-of-truth set
of open windows for deterministic scripted runs.
Fields§
§open_window_count: u32§window_open_events: u64§window_close_events: u64§last_window_open_unix_ms: Option<u64>§last_window_close_unix_ms: Option<u64>Trait Implementations§
Source§impl Clone for RunnerWindowLifecycleSnapshot
impl Clone for RunnerWindowLifecycleSnapshot
Source§fn clone(&self) -> RunnerWindowLifecycleSnapshot
fn clone(&self) -> RunnerWindowLifecycleSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for RunnerWindowLifecycleSnapshot
impl Default for RunnerWindowLifecycleSnapshot
Source§fn default() -> RunnerWindowLifecycleSnapshot
fn default() -> RunnerWindowLifecycleSnapshot
Returns the “default value” for a type. Read more
Source§impl PartialEq for RunnerWindowLifecycleSnapshot
impl PartialEq for RunnerWindowLifecycleSnapshot
Source§fn eq(&self, other: &RunnerWindowLifecycleSnapshot) -> bool
fn eq(&self, other: &RunnerWindowLifecycleSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RunnerWindowLifecycleSnapshot
impl Eq for RunnerWindowLifecycleSnapshot
impl StructuralPartialEq for RunnerWindowLifecycleSnapshot
Auto Trait Implementations§
impl Freeze for RunnerWindowLifecycleSnapshot
impl RefUnwindSafe for RunnerWindowLifecycleSnapshot
impl Send for RunnerWindowLifecycleSnapshot
impl Sync for RunnerWindowLifecycleSnapshot
impl Unpin for RunnerWindowLifecycleSnapshot
impl UnsafeUnpin for RunnerWindowLifecycleSnapshot
impl UnwindSafe for RunnerWindowLifecycleSnapshot
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