pub struct PeriodicTimer { /* private fields */ }Expand description
A timer that preserves its deadline phase when ticks are missed.
Self::elapsed_periods and Self::wait_next return the duration of whole
elapsed periods, not an integer count. Use elapsed time for animation and
periodic timers for scheduled background work.
Implementations§
Source§impl PeriodicTimer
impl PeriodicTimer
Auto Trait Implementations§
impl !RefUnwindSafe for PeriodicTimer
impl !Send for PeriodicTimer
impl !Sync for PeriodicTimer
impl !UnwindSafe for PeriodicTimer
impl Freeze for PeriodicTimer
impl Unpin for PeriodicTimer
impl UnsafeUnpin for PeriodicTimer
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