pub struct AntReader<R: Read> {
pub manifest: Manifest,
pub verified: bool,
pub version: FormatVersion,
pub minor_ahead: bool,
/* private fields */
}Expand description
Streaming .ant reader. Yields records after validating the
manifest; [AntReader::finish] (or reading through the trailer)
verifies counts + hash.
Fields§
§manifest: Manifest§verified: boolSet once the trailer was seen and verified.
version: FormatVersionVersion parsed from the manifest. Same major as this build, or
new would have refused the file.
minor_ahead: boolThe file was written by a NEWER minor than this build. Readable by policy (minors are additive-only), but it may carry record kinds this build skipped — a caller that reports completeness to a user should say so.
Implementations§
Auto Trait Implementations§
impl<R> !UnwindSafe for AntReader<R>
impl<R> Freeze for AntReader<R>where
R: Freeze,
impl<R> RefUnwindSafe for AntReader<R>where
R: RefUnwindSafe,
impl<R> Send for AntReader<R>where
R: Send,
impl<R> Sync for AntReader<R>where
R: Sync,
impl<R> Unpin for AntReader<R>where
R: Unpin,
impl<R> UnsafeUnpin for AntReader<R>where
R: UnsafeUnpin,
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