pub struct Timer {
pub interval: f64,
pub time: f64,
pub next: f64,
}
Expand description
A timer relative to start of program.
Fields§
§interval: f64
The interval in seconds between each trigger.
time: f64
The time in seconds from start of program.
next: f64
The time of next trigger in seconds.
Implementations§
Auto Trait Implementations§
impl Freeze for Timer
impl RefUnwindSafe for Timer
impl Send for Timer
impl Sync for Timer
impl Unpin for Timer
impl UnwindSafe for Timer
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