pub struct ParseStats {
pub lines_processed: u64,
pub lines_unclassified: u64,
pub lines_in_entries: u64,
pub lines_empty_orphan: u64,
pub lines_split: u64,
pub unclassified_lines: Vec<UnclassifiedLine>,
}Expand description
Cumulative parsing statistics, updated as lines flow through the stream.
Fields§
§lines_processed: u64§lines_unclassified: u64§lines_in_entries: u64Lines that became part of entries (primary line + attached lines per entry).
lines_empty_orphan: u64Empty lines that arrived with no pending entry to attach to.
lines_split: u64Physical lines that were split into multiple logical entries due to mod_logfile’s 2048-byte snprintf truncation causing same-line collisions.
unclassified_lines: Vec<UnclassifiedLine>Populated only when tracking is TrackLines or CaptureData.
Implementations§
Source§impl ParseStats
impl ParseStats
Sourcepub fn unaccounted_lines(&self) -> u64
pub fn unaccounted_lines(&self) -> u64
Lines that were processed but not accounted for by any tracking category.
Returns 0 when the parser correctly accounts for every input line. A non-zero value indicates a parser bug — lines were silently lost.
Invariant: lines_processed + lines_split == lines_in_entries + lines_empty_orphan
Trait Implementations§
Source§impl Clone for ParseStats
impl Clone for ParseStats
Source§fn clone(&self) -> ParseStats
fn clone(&self) -> ParseStats
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 ParseStats
impl Debug for ParseStats
Source§impl Default for ParseStats
impl Default for ParseStats
Source§fn default() -> ParseStats
fn default() -> ParseStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParseStats
impl RefUnwindSafe for ParseStats
impl Send for ParseStats
impl Sync for ParseStats
impl Unpin for ParseStats
impl UnsafeUnpin for ParseStats
impl UnwindSafe for ParseStats
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