Skip to main content

IndexService

Trait IndexService 

Source
pub trait IndexService: Send + Sync {
    // Required methods
    fn refresh(&self) -> Result<(), String>;
    fn is_running(&self) -> bool;
}
Expand description

Background indexing with progress reporting.

Required Methods§

Source

fn refresh(&self) -> Result<(), String>

Trigger an incremental index refresh.

Source

fn is_running(&self) -> bool

Check if indexing is currently in progress.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§