pub struct FrameStats {
pub fps: f32,
pub frame_time_ms: f32,
pub frame_time_min_ms: f32,
pub frame_time_max_ms: f32,
pub sample_count: usize,
}Expand description
Frame statistics for performance monitoring
Fields§
§fps: f32Current frames per second
frame_time_ms: f32Average frame time in milliseconds
frame_time_min_ms: f32Minimum frame time in milliseconds
frame_time_max_ms: f32Maximum frame time in milliseconds
sample_count: usizeNumber of frames sampled
Trait Implementations§
Source§impl Clone for FrameStats
impl Clone for FrameStats
Source§fn clone(&self) -> FrameStats
fn clone(&self) -> FrameStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameStats
impl Debug for FrameStats
Source§impl<'de> Deserialize<'de> for FrameStats
impl<'de> Deserialize<'de> for FrameStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FrameStats
impl RefUnwindSafe for FrameStats
impl Send for FrameStats
impl Sync for FrameStats
impl Unpin for FrameStats
impl UnwindSafe for FrameStats
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