pub struct BatchProgress {
pub completed: usize,
pub total: Option<usize>,
pub batch_number: usize,
pub batch_size: usize,
pub elapsed_ms: u64,
pub docs_per_sec: f64,
}Expand description
Progress information during batch operations
Fields§
§completed: usizeNumber of documents processed so far
total: Option<usize>Total documents to process (if known)
batch_number: usizeCurrent batch number
batch_size: usizeDocuments in current batch
elapsed_ms: u64Elapsed time in milliseconds
docs_per_sec: f64Estimated documents per second
Implementations§
Trait Implementations§
Source§impl Clone for BatchProgress
impl Clone for BatchProgress
Source§fn clone(&self) -> BatchProgress
fn clone(&self) -> BatchProgress
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BatchProgress
impl RefUnwindSafe for BatchProgress
impl Send for BatchProgress
impl Sync for BatchProgress
impl Unpin for BatchProgress
impl UnsafeUnpin for BatchProgress
impl UnwindSafe for BatchProgress
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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