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§
fn name(&self) -> &str
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.