pub struct HistoricalClockPoller { /* private fields */ }Expand description
Runtime poller for historical (replay) clock — auto-advances per sync.
Implementations§
Source§impl HistoricalClockPoller
impl HistoricalClockPoller
Sourcepub fn sync(&mut self, world: &mut World)
pub fn sync(&mut self, world: &mut World)
Sync the Clock resource and auto-advance the replay position.
Writes current position into Clock, then advances by one step.
Sourcepub fn is_exhausted(&self) -> bool
pub fn is_exhausted(&self) -> bool
Whether the replay has reached end_nanos.
Sourcepub fn current_nanos(&self) -> i128
pub fn current_nanos(&self) -> i128
Current replay position in UTC nanos.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HistoricalClockPoller
impl RefUnwindSafe for HistoricalClockPoller
impl Send for HistoricalClockPoller
impl !Sync for HistoricalClockPoller
impl Unpin for HistoricalClockPoller
impl UnsafeUnpin for HistoricalClockPoller
impl UnwindSafe for HistoricalClockPoller
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