pub trait SearchProvider: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn call<'a>(
&'a self,
query: &'a str,
) -> BoxFut<'a, Result<Vec<SearchResult>, RuntimeError>>;
}Required Methods§
fn name(&self) -> &'static str
fn call<'a>( &'a self, query: &'a str, ) -> BoxFut<'a, Result<Vec<SearchResult>, RuntimeError>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".