Skip to main content

read_log_lines

Function read_log_lines 

Source
pub fn read_log_lines<R: BufRead>(
    r: R,
) -> impl Iterator<Item = Result<DecodedLine>>
Expand description

Read newline-delimited log lines, decoding each with the truncated-codepoint case typed distinctly from corruption.

Real I/O errors stay terminal io::Error. UTF-8 invalidity is not an error — the line is lossy-recovered (U+FFFD) so the record survives, and the verdict is reported in DecodedLine::decode.