Skip to main content

IndexBackend

Trait IndexBackend 

Source
pub trait IndexBackend: Send + Sync {
    // Required methods
    fn sync(&mut self, repo: &IxchelRepo) -> Result<SyncStats>;
    fn search(&self, query: &str, limit: usize) -> Result<Vec<SearchHit>>;
    fn health_check(&self) -> Result<()>;
}

Required Methods§

Source

fn sync(&mut self, repo: &IxchelRepo) -> Result<SyncStats>

Source

fn search(&self, query: &str, limit: usize) -> Result<Vec<SearchHit>>

Source

fn health_check(&self) -> Result<()>

Implementors§