pub struct InstalledModels<'runtime> { /* private fields */ }Implementations§
Source§impl<'runtime> InstalledModels<'runtime>
impl<'runtime> InstalledModels<'runtime>
pub fn new( transport: &'runtime dyn Transport, verifier: &'runtime dyn InstalledVerifier, ) -> Self
pub async fn list( &self, endpoint: &str, cancel: &CancellationToken, ) -> Result<Vec<InstalledModel>, OllamaError>
pub async fn inspect( &self, endpoint: &str, id: &str, cancel: &CancellationToken, ) -> Result<InstalledModel, OllamaError>
pub async fn activate( &self, endpoint: &str, model: &InstalledModel, context: Option<u32>, cancel: &CancellationToken, ) -> Result<String, OllamaError>
pub async fn activate_with_id( &self, endpoint: &str, model: &InstalledModel, context: Option<u32>, unique: &str, cancel: &CancellationToken, ) -> Result<String, OllamaError>
Auto Trait Implementations§
impl<'runtime> !RefUnwindSafe for InstalledModels<'runtime>
impl<'runtime> !UnwindSafe for InstalledModels<'runtime>
impl<'runtime> Freeze for InstalledModels<'runtime>
impl<'runtime> Send for InstalledModels<'runtime>
impl<'runtime> Sync for InstalledModels<'runtime>
impl<'runtime> Unpin for InstalledModels<'runtime>
impl<'runtime> UnsafeUnpin for InstalledModels<'runtime>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more