pub struct EventStats {
pub total_events: usize,
pub high_priority_events: usize,
pub normal_priority_events: usize,
pub low_priority_events: usize,
pub dropped_events: usize,
pub processing_time_ms: u128,
pub queue_size_max: usize,
}Expand description
Statistics for monitoring event processing behavior
Fields§
§total_events: usizeTotal number of events processed
high_priority_events: usizeNumber of high priority events processed
normal_priority_events: usizeNumber of normal priority events processed
low_priority_events: usizeNumber of low priority events processed
dropped_events: usizeNumber of events dropped due to queue overflow
processing_time_ms: u128Total processing time in milliseconds
queue_size_max: usizeMaximum queue size reached during processing
Trait Implementations§
Source§impl Clone for EventStats
impl Clone for EventStats
Source§fn clone(&self) -> EventStats
fn clone(&self) -> EventStats
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 EventStats
impl Debug for EventStats
Source§impl Default for EventStats
impl Default for EventStats
Source§fn default() -> EventStats
fn default() -> EventStats
Returns the “default value” for a type. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Inspectable for T
impl<T> Inspectable for T
Source§fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
Conditionally inspect this value
Source§fn inspect_with<F>(self, label: &str, f: F) -> Self
fn inspect_with<F>(self, label: &str, f: F) -> Self
Inspect with a custom formatter