SearchProvider

Trait SearchProvider 

Source
pub trait SearchProvider {
    // Required methods
    fn name(&self) -> &str;
    fn search(
        &self,
        query: &str,
        count: Option<usize>,
    ) -> impl Future<Output = Result<SearchResults>> + Send;
}

Required Methods§

Source

fn name(&self) -> &str

Source

fn search( &self, query: &str, count: Option<usize>, ) -> impl Future<Output = Result<SearchResults>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§