Skip to main content

PlaygroundModels

Trait PlaygroundModels 

Source
pub trait PlaygroundModels: Send + Sync {
    // Required methods
    fn list<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<PlaygroundModel>, ApiError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn set_loaded<'life0, 'async_trait>(
        &'life0 self,
        name: String,
        loaded: bool,
    ) -> Pin<Box<dyn Future<Output = Result<(), ApiError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Daemon-owned artifact loading boundary. The API never opens model files.

Required Methods§

Source

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

List local installations and configured aliases without downloading.

Source

fn set_loaded<'life0, 'async_trait>( &'life0 self, name: String, loaded: bool, ) -> Pin<Box<dyn Future<Output = Result<(), ApiError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Explicitly load or unload one known local model.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§