Skip to main content

DiscoverySource

Trait DiscoverySource 

Source
pub trait DiscoverySource: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn discover<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ModelEntry>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Async source of discoverable models.

Required Methods§

Source

fn name(&self) -> &'static str

Human-readable source name.

Source

fn discover<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<ModelEntry>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Discover available models from this source.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§