pub struct TickLoopEvent {
pub target_tickrate: u32,
pub time: Instant,
pub duration: Duration,
pub ticks: u64,
}Expand description
Event that is spawned when a tick occurs.
Fields§
§target_tickrate: u32The targeted tick-rate.
time: InstantThe current point in time.
duration: DurationThe intended tick Duration.
ticks: u64The total number of ticks the gameloop went trough.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TickLoopEvent
impl RefUnwindSafe for TickLoopEvent
impl Send for TickLoopEvent
impl Sync for TickLoopEvent
impl Unpin for TickLoopEvent
impl UnwindSafe for TickLoopEvent
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