#[non_exhaustive]pub struct FrameTiming {
pub start: Instant,
pub length: Duration,
pub work: Duration,
}Expand description
When a frame started, and how long it took.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.start: InstantWhen the frame started.
length: DurationHow long it was: until the next frame started.
work: DurationHow long the processor worked on it: its length less the waits, such as the frame limiter’s sleep and the display’s swap.
Implementations§
Trait Implementations§
Source§impl Clone for FrameTiming
impl Clone for FrameTiming
impl Copy for FrameTiming
Source§impl Debug for FrameTiming
impl Debug for FrameTiming
impl Eq for FrameTiming
Source§impl PartialEq for FrameTiming
impl PartialEq for FrameTiming
impl StructuralPartialEq for FrameTiming
Auto Trait Implementations§
impl Forget for FrameTiming
impl Freeze for FrameTiming
impl Move for FrameTiming
impl RefUnwindSafe for FrameTiming
impl Send for FrameTiming
impl Sync for FrameTiming
impl Unpin for FrameTiming
impl UnsafeUnpin for FrameTiming
impl UnwindSafe for FrameTiming
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