pub trait IndexConfig {
const INDEX_STR: &'static str;
// Required methods
fn generate_settings() -> Settings;
fn generate_index<'life0, 'async_trait, Http>(
client: &'life0 Client<Http>,
) -> Pin<Box<dyn Future<Output = Result<Index<Http>, Task>> + 'async_trait>>
where Http: 'async_trait + HttpClient,
'life0: 'async_trait;
// Provided method
fn index<Http: HttpClient>(client: &Client<Http>) -> Index<Http> { ... }
}
Required Associated Constants§
Required Methods§
fn generate_settings() -> Settings
fn generate_index<'life0, 'async_trait, Http>(
client: &'life0 Client<Http>,
) -> Pin<Box<dyn Future<Output = Result<Index<Http>, Task>> + 'async_trait>>where
Http: 'async_trait + HttpClient,
'life0: 'async_trait,
Provided Methods§
fn index<Http: HttpClient>(client: &Client<Http>) -> Index<Http>
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.