pub struct Uniform { /* private fields */ }Expand description
Tick every inactive screen at a fixed reduced rate: every Nth frame.
This is the direct framework-level equivalent of a global
INACTIVE_SCREEN_TICK_DIVISOR.
divisor=1: every frame (no throttling, matches current ftui default)divisor=5: every 5th frame (recommended default)divisor=10: every 10th frame
Implementations§
Trait Implementations§
Source§impl TickStrategy for Uniform
impl TickStrategy for Uniform
Source§fn should_tick(
&mut self,
_screen_id: &str,
tick_count: u64,
_active_screen: &str,
) -> TickDecision
fn should_tick( &mut self, _screen_id: &str, tick_count: u64, _active_screen: &str, ) -> TickDecision
Decide whether to tick an inactive screen on this frame.
Source§fn on_screen_transition(&mut self, _from: &str, _to: &str)
fn on_screen_transition(&mut self, _from: &str, _to: &str)
Called when the runtime observes a screen transition.
Source§fn maintenance_tick(&mut self, _tick_count: u64)
fn maintenance_tick(&mut self, _tick_count: u64)
Called periodically for maintenance work.
impl Copy for Uniform
Auto Trait Implementations§
impl Freeze for Uniform
impl RefUnwindSafe for Uniform
impl Send for Uniform
impl Sync for Uniform
impl Unpin for Uniform
impl UnsafeUnpin for Uniform
impl UnwindSafe for Uniform
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