pub struct Tick {
pub frame: u64,
pub elapsed: Duration,
}Expand description
A tick event sent at regular intervals.
Fields§
§frame: u64Frame number (monotonically increasing).
elapsed: DurationTime elapsed since the ticker was started.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tick
impl RefUnwindSafe for Tick
impl Send for Tick
impl Sync for Tick
impl Unpin for Tick
impl UnwindSafe for Tick
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