Skip to main content

ParseStats

Struct ParseStats 

Source
pub struct ParseStats { /* private fields */ }
Expand description

Byte-level parse coverage statistics.

Available from all three iterator levels via stats() or parse_stats(). Every byte consumed from the reader is accounted for as either parsed (bytes_read - bytes_skipped) or skipped (bytes_skipped).

Implementations§

Source§

impl ParseStats

Source

pub fn bytes_read(&self) -> u64

Total bytes consumed from the reader.

Source

pub fn bytes_skipped(&self) -> u64

Bytes that were skipped (not parsed into frames).

Source

pub fn incomplete_frames(&self) -> u64

Frames whose content ran out before byte_count at end of input. Maintained in every SkipTracking mode.

Source

pub fn incomplete_frame_bytes(&self) -> u64

Total shortfall of those frames. A caller stitching rotated files together decides for itself whether a shortfall is a rotation cut.

Source

pub fn stale_evictions(&self) -> u64

Connection buffers dropped mid-stream while still holding a partial message. Unlike a frame cut at end of input, this content is never emitted, so it is lost from the output.

Source

pub fn stale_evicted_bytes(&self) -> u64

Bytes those buffers were holding.

Source

pub fn non_sip_prefixes(&self) -> u64

Times a TCP buffer resynchronised past bytes that began no SIP message.

Source

pub fn non_sip_prefix_bytes(&self) -> u64

Bytes discarded by those resynchronisations.

Source

pub fn unparsed_regions(&self) -> &[UnparsedRegion]

Detailed unparsed region records. Only populated when SkipTracking is TrackRegions or CaptureData.

Source

pub fn drain_regions(&mut self) -> Vec<UnparsedRegion>

Take all accumulated unparsed regions, leaving the list empty.

Trait Implementations§

Source§

impl Clone for ParseStats

Source§

fn clone(&self) -> ParseStats

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ParseStats

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ParseStats

Source§

fn default() -> ParseStats

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more