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,537 bytes: the largest datagram plus the two-byte boundary.
OversizedFrame
Skip region exceeds 65,537 bytes, at file start or mid-stream, 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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more