pub struct KeyValueStats {
pub total_processed: u64,
pub passed_count: u64,
pub dropped_count: u64,
pub bounce_histogram: TimingHistogram,
pub bounce_summary: TimingSummary,
pub bounce_samples: TimingSamples,
}Expand description
Statistics for a specific key value state (press/release/repeat). Holds the count of dropped events and the timing differences for those drops.
Fields§
§total_processed: u64Total events processed (passed + dropped) for this specific key state.
passed_count: u64Count of events that passed the filter for this specific key state.
dropped_count: u64Count of events that were dropped (bounced) for this specific key state.
bounce_histogram: TimingHistogramHistogram of bounce timings for this specific key state.
bounce_summary: TimingSummaryAggregated statistics for bounce timings.
bounce_samples: TimingSamplesSampled bounce timings retained for debugging/JSON output.
Implementations§
Source§impl KeyValueStats
impl KeyValueStats
Sourcepub fn record_bounce_timing(&mut self, value: u64)
pub fn record_bounce_timing(&mut self, value: u64)
Records a bounce timing, updating summary, histogram, and sampled values.
Trait Implementations§
Source§impl Clone for KeyValueStats
impl Clone for KeyValueStats
Source§fn clone(&self) -> KeyValueStats
fn clone(&self) -> KeyValueStats
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 KeyValueStats
impl Debug for KeyValueStats
Auto Trait Implementations§
impl Freeze for KeyValueStats
impl RefUnwindSafe for KeyValueStats
impl Send for KeyValueStats
impl Sync for KeyValueStats
impl Unpin for KeyValueStats
impl UnsafeUnpin for KeyValueStats
impl UnwindSafe for KeyValueStats
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request