pub struct FilterStats {
pub incremental_checks: u64,
pub incremental_matches: u64,
pub full_rescans: u64,
pub full_rescan_lines: u64,
pub incremental_search_matches: u64,
pub incremental_search_checks: u64,
}Expand description
Statistics tracking incremental vs full-rescan filter/search operations.
Useful for monitoring the efficiency of the streaming update path.
Reset with FilterStats::reset.
Fields§
§incremental_checks: u64Lines checked incrementally (O(1) per push).
incremental_matches: u64Lines that matched during incremental checks.
full_rescans: u64Full rescans triggered (e.g., by set_filter or search).
full_rescan_lines: u64Total lines scanned during full rescans.
incremental_search_matches: u64Search matches added incrementally on push.
incremental_search_checks: u64Lines checked incrementally for search matches.
Implementations§
Source§impl FilterStats
impl FilterStats
Trait Implementations§
Source§impl Clone for FilterStats
impl Clone for FilterStats
Source§fn clone(&self) -> FilterStats
fn clone(&self) -> FilterStats
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 FilterStats
impl Debug for FilterStats
Source§impl Default for FilterStats
impl Default for FilterStats
Source§fn default() -> FilterStats
fn default() -> FilterStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FilterStats
impl RefUnwindSafe for FilterStats
impl Send for FilterStats
impl Sync for FilterStats
impl Unpin for FilterStats
impl UnsafeUnpin for FilterStats
impl UnwindSafe for FilterStats
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