pub struct AppendWriteReport { /* private fields */ }Expand description
Settlement report for one AppendWriter::write call.
batches are ordered by their AppendRequestResult::input_range
and cover a contiguous prefix of the input slice; unsubmitted
covers the remaining suffix.
Implementations§
Source§impl AppendWriteReport
impl AppendWriteReport
Sourcepub fn input_rows(&self) -> usize
pub fn input_rows(&self) -> usize
Returns the total number of rows in the input slice.
Sourcepub fn batches(&self) -> &[AppendRequestResult]
pub fn batches(&self) -> &[AppendRequestResult]
Returns the scheduled batches in input order.
Sourcepub fn unsubmitted(&self) -> Range<usize> ⓘ
pub fn unsubmitted(&self) -> Range<usize> ⓘ
Returns the input index range that was never sent and is known not to have committed.
Sourcepub fn committed_rows(&self) -> usize
pub fn committed_rows(&self) -> usize
Returns the number of input rows in batches acknowledged as committed.
Sourcepub fn outcome(&self) -> AppendDeliveryOutcome
pub fn outcome(&self) -> AppendDeliveryOutcome
Returns the aggregate AppendDeliveryOutcome for this write call.
AppendDeliveryOutcome::Partial may include batches with
AppendOutcome::Ambiguous; inspect batches before replaying
failed ranges.
Trait Implementations§
Source§impl Clone for AppendWriteReport
impl Clone for AppendWriteReport
Auto Trait Implementations§
impl !RefUnwindSafe for AppendWriteReport
impl !UnwindSafe for AppendWriteReport
impl Freeze for AppendWriteReport
impl Send for AppendWriteReport
impl Sync for AppendWriteReport
impl Unpin for AppendWriteReport
impl UnsafeUnpin for AppendWriteReport
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