pub struct TimerState {
pub last_manual_refresh: Instant,
pub last_auto_refresh: Instant,
pub last_page_change: Instant,
pub last_date_navigation: Instant,
pub last_resize: Instant,
pub last_activity: Instant,
pub cache_monitor_timer: Instant,
pub last_page_input: Instant,
}Expand description
Timer state for various interactive UI operations
Fields§
§last_manual_refresh: Instant§last_auto_refresh: Instant§last_page_change: Instant§last_resize: Instant§last_activity: Instant§cache_monitor_timer: Instant§last_page_input: InstantLast digit typed for teletext-style page number entry
Implementations§
Source§impl TimerState
impl TimerState
Sourcepub fn update_activity(&mut self)
pub fn update_activity(&mut self)
Update activity timestamp
Sourcepub fn time_since_activity(&self) -> Duration
pub fn time_since_activity(&self) -> Duration
Get time since last activity
Sourcepub fn update_auto_refresh(&mut self)
pub fn update_auto_refresh(&mut self)
Update auto refresh timestamp
Sourcepub fn update_resize(&mut self)
pub fn update_resize(&mut self)
Update resize timestamp
Sourcepub fn update_cache_monitor(&mut self)
pub fn update_cache_monitor(&mut self)
Update cache monitor timestamp
Trait Implementations§
Source§impl Debug for TimerState
impl Debug for TimerState
Auto Trait Implementations§
impl Freeze for TimerState
impl RefUnwindSafe for TimerState
impl Send for TimerState
impl Sync for TimerState
impl Unpin for TimerState
impl UnsafeUnpin for TimerState
impl UnwindSafe for TimerState
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