pub struct ComponentStats {
pub name: String,
pub render_count: u64,
pub total_time: Duration,
pub avg_time: Duration,
pub min_time: Duration,
pub max_time: Duration,
pub last_reason: RenderReason,
}Expand description
Component render statistics
Fields§
§name: StringComponent name
render_count: u64Total renders
total_time: DurationTotal render time
avg_time: DurationAverage render time
min_time: DurationMin render time
max_time: DurationMax render time
last_reason: RenderReasonLast render reason
Implementations§
Trait Implementations§
Source§impl Clone for ComponentStats
impl Clone for ComponentStats
Source§fn clone(&self) -> ComponentStats
fn clone(&self) -> ComponentStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ComponentStats
impl Debug for ComponentStats
Source§impl Default for ComponentStats
impl Default for ComponentStats
Source§fn default() -> ComponentStats
fn default() -> ComponentStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComponentStats
impl RefUnwindSafe for ComponentStats
impl Send for ComponentStats
impl Sync for ComponentStats
impl Unpin for ComponentStats
impl UnsafeUnpin for ComponentStats
impl UnwindSafe for ComponentStats
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