pub struct IndexingProgress { /* private fields */ }Expand description
Progress tracker for the complete indexing pipeline
Implementations§
Source§impl IndexingProgress
impl IndexingProgress
Sourcepub fn start_discovery(&mut self) -> Result<()>
pub fn start_discovery(&mut self) -> Result<()>
Start the file discovery phase with a spinner
Sourcepub fn finish_discovery(&mut self, file_count: usize) -> Result<()>
pub fn finish_discovery(&mut self, file_count: usize) -> Result<()>
Finish file discovery and show results
Sourcepub fn start_processing(&mut self, total_files: usize) -> Result<()>
pub fn start_processing(&mut self, total_files: usize) -> Result<()>
Start the file processing phase with a progress bar
Sourcepub fn update_processing(&mut self, current_file: &Path) -> Result<()>
pub fn update_processing(&mut self, current_file: &Path) -> Result<()>
Update progress for the current file being processed
Sourcepub fn record_file_success(
&mut self,
chunks_created: usize,
embeddings_generated: usize,
)
pub fn record_file_success( &mut self, chunks_created: usize, embeddings_generated: usize, )
Record successful processing of a file
Sourcepub fn record_file_failure(&mut self, file_path: &Path, error: &Error)
pub fn record_file_failure(&mut self, file_path: &Path, error: &Error)
Record failed processing of a file
Sourcepub fn finish_processing(&mut self, index_path: &Path) -> Result<()>
pub fn finish_processing(&mut self, index_path: &Path) -> Result<()>
Finish processing and show final summary
Sourcepub fn show_summary(&self, index_path: &Path) -> Result<()>
pub fn show_summary(&self, index_path: &Path) -> Result<()>
Display final summary statistics
Sourcepub fn stats(&self) -> &IndexingStats
pub fn stats(&self) -> &IndexingStats
Get current statistics
Sourcepub fn has_failures(&self) -> bool
pub fn has_failures(&self) -> bool
Check if any files failed to process
Auto Trait Implementations§
impl Freeze for IndexingProgress
impl RefUnwindSafe for IndexingProgress
impl Send for IndexingProgress
impl Sync for IndexingProgress
impl Unpin for IndexingProgress
impl UnsafeUnpin for IndexingProgress
impl UnwindSafe for IndexingProgress
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
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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