pub struct Stats { /* private fields */ }Implementations§
Source§impl Stats
impl Stats
pub fn new(last: u32) -> Self
pub fn apply(&mut self, event: &AppEvent)
pub fn snapshot( &self, include_global: bool, include_recent: bool, ) -> StatsSnapshot
pub fn global_snapshot(&self) -> GlobalStatsSnapshot
pub fn recent_snapshot(&self) -> RecentStatsSnapshot
Trait Implementations§
impl Eq for Stats
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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