pub struct IndexProgress {
pub current: Arc<AtomicUsize>,
pub total: Arc<AtomicUsize>,
/* private fields */
}Expand description
Progress tracking for indexing operations.
Fields§
§current: Arc<AtomicUsize>Current file being processed (1-indexed)
total: Arc<AtomicUsize>Total number of files to process
Implementations§
Source§impl IndexProgress
impl IndexProgress
Sourcepub fn set_current_file(&self, file_name: Option<String>)
pub fn set_current_file(&self, file_name: Option<String>)
Set the current file being indexed.
Sourcepub fn current_file(&self) -> Option<String>
pub fn current_file(&self) -> Option<String>
Get the current file name being indexed.
Trait Implementations§
Source§impl Clone for IndexProgress
impl Clone for IndexProgress
Source§fn clone(&self) -> IndexProgress
fn clone(&self) -> IndexProgress
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 moreSource§impl Debug for IndexProgress
impl Debug for IndexProgress
Auto Trait Implementations§
impl Freeze for IndexProgress
impl !RefUnwindSafe for IndexProgress
impl Send for IndexProgress
impl Sync for IndexProgress
impl Unpin for IndexProgress
impl UnsafeUnpin for IndexProgress
impl !UnwindSafe for IndexProgress
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