pub struct ManualVsyncHandle { /* private fields */ }Expand description
Shared atomic control handle paired with ManualVsyncPacer for deterministic tests.
All steady-state operations are strictly atomic (CountingAlloc == 0).
Implementations§
Source§impl ManualVsyncHandle
impl ManualVsyncHandle
Sourcepub fn active_transitions(&self) -> u64
pub fn active_transitions(&self) -> u64
Returns the number of active state transitions observed (false -> true or true -> false).
Sourcepub fn ticks_triggered(&self) -> u64
pub fn ticks_triggered(&self) -> u64
Returns how many coalesced ticks have been triggered via Self::trigger_tick.
Sourcepub fn ticks_received(&self) -> u64
pub fn ticks_received(&self) -> u64
Returns how many ticks have been acknowledged via on_tick_received.
Sourcepub fn is_tick_pending(&self) -> bool
pub fn is_tick_pending(&self) -> bool
Returns true when a triggered tick has not yet been acknowledged via on_tick_received.
Sourcepub fn trigger_tick(&self) -> bool
pub fn trigger_tick(&self) -> bool
Triggers one coalesced tick if the pacer is active and no tick is already in flight.
Returns true when a new tick was emitted.
Sourcepub fn set_nominal_interval_us(&self, interval_us: Option<u32>)
pub fn set_nominal_interval_us(&self, interval_us: Option<u32>)
Updates the reported nominal frame interval in microseconds (None or Some(0) clears it).
Sourcepub fn on_tick_received(&self)
pub fn on_tick_received(&self)
Acknowledges receipt of a tick directly through the handle (mirrors VsyncPacer::on_tick_received).