Skip to main content

ProgressReporter

Trait ProgressReporter 

Source
pub trait ProgressReporter: Send + Sync {
    // Required method
    fn report(&self, event: IndexProgress);
}
Expand description

Trait for reporting progress during indexing operations.

Implementors can display progress bars, log events, or perform other actions in response to indexing progress.

§Thread Safety

Implementations must be Send + Sync to support parallel indexing. Progress events may be reported from multiple threads concurrently.

Required Methods§

Source

fn report(&self, event: IndexProgress)

Report a progress event.

This method is called during indexing to report progress. Implementations should be non-blocking to avoid slowing down the indexing process.

Implementors§