pub struct StatsCollector { /* private fields */ }Implementations§
Source§impl StatsCollector
impl StatsCollector
pub fn new(config: StatsConfig) -> Self
pub fn process(&mut self, event: &ClientEvent) -> EventStatsUpdate
pub fn process_with_update(&mut self, event: &ClientEvent) -> EventStatsUpdate
pub fn cumulative(&self) -> CumulativeSnapshot
pub fn rolling_count(&self) -> Option<RollingSnapshot>
pub fn rolling_time(&self) -> Option<RollingSnapshot>
pub fn summary(&self) -> FiniteSummary
Trait Implementations§
Source§impl Clone for StatsCollector
impl Clone for StatsCollector
Source§fn clone(&self) -> StatsCollector
fn clone(&self) -> StatsCollector
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 StatsCollector
impl Debug for StatsCollector
Source§impl PartialEq for StatsCollector
impl PartialEq for StatsCollector
Source§fn eq(&self, other: &StatsCollector) -> bool
fn eq(&self, other: &StatsCollector) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StatsCollector
Auto Trait Implementations§
impl Freeze for StatsCollector
impl RefUnwindSafe for StatsCollector
impl Send for StatsCollector
impl Sync for StatsCollector
impl Unpin for StatsCollector
impl UnsafeUnpin for StatsCollector
impl UnwindSafe for StatsCollector
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