pub struct AntWriter<W: Write> { /* private fields */ }Expand description
Streaming .ant writer: records in, zstd-framed NDJSON out.
Call AntWriter::finish to emit the trailer and flush.
Implementations§
Source§impl<W: Write> AntWriter<W>
impl<W: Write> AntWriter<W>
Sourcepub fn new(out: W, manifest: Manifest, level: i32) -> Result<Self, AntError>
pub fn new(out: W, manifest: Manifest, level: i32) -> Result<Self, AntError>
Compression level 0 = zstd default (currently 3). Levels up to 19 trade speed for size; text-heavy evidence compresses 5-10x at the default already.
pub fn write(&mut self, rec: AntRecord) -> Result<(), AntError>
Auto Trait Implementations§
impl<W> !UnwindSafe for AntWriter<W>
impl<W> Freeze for AntWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for AntWriter<W>where
W: RefUnwindSafe,
impl<W> Send for AntWriter<W>where
W: Send,
impl<W> Sync for AntWriter<W>where
W: Sync,
impl<W> Unpin for AntWriter<W>where
W: Unpin,
impl<W> UnsafeUnpin for AntWriter<W>where
W: 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