pub enum SkipReason {
PartialFirstFrame,
OversizedFrame,
MidStreamSkip,
ReplayedFrame,
IncompleteFrame,
InvalidHeader,
}Expand description
Why a region of the input stream was not parsed into a frame.
Every byte in the input is either parsed or classified with one of these
reasons, enabling byte-level coverage accounting via ParseStats.
Variants§
PartialFirstFrame
Truncated frame at the start of a file, typically from logrotate cutting mid-write. Capped at 65,535 bytes.
OversizedFrame
Skip region exceeds 65,535 bytes at file start, indicating the input is not a dump file (e.g., compressed or binary data).
MidStreamSkip
Unrecoverable bytes skipped between valid frames mid-stream.
ReplayedFrame
Logrotate wrote a partial frame tail at the start of the new file.
Detected by the \r\n\r\n\x0B\n suffix pattern.
IncompleteFrame
Frame at EOF with fewer content bytes than declared in the header.
InvalidHeader
Data starts with recv/sent but fails frame header parsing.
Trait Implementations§
Source§impl Clone for SkipReason
impl Clone for SkipReason
Source§fn clone(&self) -> SkipReason
fn clone(&self) -> SkipReason
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 SkipReason
impl Debug for SkipReason
Source§impl Display for SkipReason
impl Display for SkipReason
Source§impl PartialEq for SkipReason
impl PartialEq for SkipReason
impl Copy for SkipReason
impl Eq for SkipReason
impl StructuralPartialEq for SkipReason
Auto Trait Implementations§
impl Freeze for SkipReason
impl RefUnwindSafe for SkipReason
impl Send for SkipReason
impl Sync for SkipReason
impl Unpin for SkipReason
impl UnsafeUnpin for SkipReason
impl UnwindSafe for SkipReason
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