pub struct BuildProgress {
pub shards_completed: usize,
pub shards_total: usize,
}Expand description
A progress snapshot delivered to the callback registered with
IndexBuilder::on_progress as parallel construction proceeds.
One snapshot is reported each time a shard finishes building, so
shards_completed climbs from 1 to shards_total. Because shards build
concurrently, snapshots may arrive on different threads and (rarely) slightly
out of order; treat shards_completed as a monotonic high-water count for a
progress bar, not as a strict sequence.
Fields§
§shards_completed: usizeHow many shards have finished building so far.
shards_total: usizeThe total number of shards in this build.
Trait Implementations§
Source§impl Clone for BuildProgress
impl Clone for BuildProgress
Source§fn clone(&self) -> BuildProgress
fn clone(&self) -> BuildProgress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BuildProgress
Source§impl Debug for BuildProgress
impl Debug for BuildProgress
impl Eq for BuildProgress
Source§impl PartialEq for BuildProgress
impl PartialEq for BuildProgress
Source§fn eq(&self, other: &BuildProgress) -> bool
fn eq(&self, other: &BuildProgress) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BuildProgress
Auto Trait Implementations§
impl Freeze for BuildProgress
impl RefUnwindSafe for BuildProgress
impl Send for BuildProgress
impl Sync for BuildProgress
impl Unpin for BuildProgress
impl UnsafeUnpin for BuildProgress
impl UnwindSafe for BuildProgress
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