pub enum NextLine {
Line(DecompressedLine),
Skipped {
byte_offset: u64,
bytes: u64,
},
None,
}Expand description
The outcome of a call to FileDecompressor::next_line.
Variants§
Line(DecompressedLine)
A complete line was extracted.
Skipped
A record longer than the configured maximum was discarded and the stream continues with the following record. Reports where the discarded record began in the decompressed stream and how many bytes were dropped (excluding the terminating newline).
None
No line is available right now. The caller should check whether the file is done or retry later.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NextLine
impl RefUnwindSafe for NextLine
impl Send for NextLine
impl Sync for NextLine
impl Unpin for NextLine
impl UnwindSafe for NextLine
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more