pub struct EventStats { /* private fields */ }Expand description
Event channel statistics.
Implementations§
Source§impl EventStats
impl EventStats
Sourcepub fn record_event(&self)
pub fn record_event(&self)
Record a successfully parsed event packet.
Sourcepub fn record_malformed(&self)
pub fn record_malformed(&self)
Record a dropped or malformed event packet.
Sourcepub fn record_filtered(&self)
pub fn record_filtered(&self)
Record an event filtered out by the application.
Sourcepub fn snapshot(&self) -> EventSnapshot
pub fn snapshot(&self) -> EventSnapshot
Snapshot the collected counters.
Trait Implementations§
Source§impl Debug for EventStats
impl Debug for EventStats
Auto Trait Implementations§
impl !Freeze for EventStats
impl RefUnwindSafe for EventStats
impl Send for EventStats
impl Sync for EventStats
impl Unpin for EventStats
impl UnwindSafe for EventStats
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