pub struct ComponentStats {
pub operations: u64,
pub total_time_ns: u64,
pub max_time_ns: u64,
pub violations: u64,
pub avg_time_ns: f64,
}Expand description
Статистика компонента
Fields§
§operations: u64Количество операций
total_time_ns: u64Суммарное время (для среднего)
max_time_ns: u64Максимальное время
violations: u64Количество нарушений
avg_time_ns: f64Среднее время
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 · 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