pub struct BatchResults<'a> { /* private fields */ }Expand description
Result cursor. Buffers one file at a time; parsing does not create a second collection of all records.
No background task or connection is retained between next calls. Dropping an in-flight next
cancels that request; discard the cursor after cancellation rather than resuming uncertain I/O.
Implementations§
Source§impl BatchResults<'_>
impl BatchResults<'_>
Sourcepub fn batch(&self) -> &Batch
pub fn batch(&self) -> &Batch
Final batch, including counters and any batch-level validation errors.
Sourcepub async fn next(
&mut self,
) -> Result<Option<BatchResultLine>, BatchOperationError>
pub async fn next( &mut self, ) -> Result<Option<BatchResultLine>, BatchOperationError>
Read the next record, output file first then error file. Ends permanently on a read/parse error.
Record order is not input order; correlate by custom_id.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for BatchResults<'a>
impl<'a> !UnwindSafe for BatchResults<'a>
impl<'a> Freeze for BatchResults<'a>
impl<'a> Send for BatchResults<'a>
impl<'a> Sync for BatchResults<'a>
impl<'a> Unpin for BatchResults<'a>
impl<'a> UnsafeUnpin for BatchResults<'a>
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