pub struct RuntimeSnapshot {Show 16 fields
pub paused: bool,
pub pause_remaining_secs: Option<u64>,
pub auto_suppress: Option<&'static str>,
pub dnd_active: bool,
pub camera_active: bool,
pub video_active: bool,
pub screen_locked: Option<bool>,
pub idle_probe: Result<u64, String>,
pub active_break: Option<&'static str>,
pub micro: Option<BreakClock>,
pub long: Option<BreakClock>,
pub micro_postpones: u32,
pub long_postpones: u32,
pub notification_permission: String,
pub autostart_setting: bool,
pub autostart_registered: Option<bool>,
}Expand description
Everything the report needs to answer “why isn’t a break happening
right now”. Gathered live from the scheduler + windowing system, then
rendered by format_runtime_snapshot (kept pure for testing).
Fields§
§paused: bool§pause_remaining_secs: Option<u64>Some only for a timed pause; None while paused means indefinite.
auto_suppress: Option<&'static str>Human label of the active auto-suppression, or None if breaks
are not being auto-suppressed this instant.
dnd_active: bool§camera_active: bool§video_active: bool§screen_locked: Option<bool>§idle_probe: Result<u64, String>Live UserIdle probe: idle seconds, or the error string if the
platform query failed (the #67 “MIT-SCREEN-SAVER missing” case).
active_break: Option<&'static str>§micro: Option<BreakClock>§long: Option<BreakClock>§micro_postpones: u32§long_postpones: u32§notification_permission: String§autostart_setting: bool§autostart_registered: Option<bool>OS-level autostart registration, or None if it couldn’t be read.
Trait Implementations§
Source§impl Clone for RuntimeSnapshot
impl Clone for RuntimeSnapshot
Source§fn clone(&self) -> RuntimeSnapshot
fn clone(&self) -> RuntimeSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeSnapshot
impl Debug for RuntimeSnapshot
Source§impl PartialEq for RuntimeSnapshot
impl PartialEq for RuntimeSnapshot
impl StructuralPartialEq for RuntimeSnapshot
Auto Trait Implementations§
impl Freeze for RuntimeSnapshot
impl RefUnwindSafe for RuntimeSnapshot
impl Send for RuntimeSnapshot
impl Sync for RuntimeSnapshot
impl Unpin for RuntimeSnapshot
impl UnsafeUnpin for RuntimeSnapshot
impl UnwindSafe for RuntimeSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more