pub struct ModelManager {
pub client: Ollama,
pub auto_pull: bool,
pub mode: RuntimeMode,
}Expand description
Ensures requested models exist locally according to RuntimeMode and auto_pull policy.
Fields§
§client: Ollama§auto_pull: bool§mode: RuntimeModeImplementations§
Source§impl ModelManager
impl ModelManager
Trait Implementations§
Source§impl Clone for ModelManager
impl Clone for ModelManager
Source§fn clone(&self) -> ModelManager
fn clone(&self) -> ModelManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModelManager
impl !RefUnwindSafe for ModelManager
impl Send for ModelManager
impl Sync for ModelManager
impl Unpin for ModelManager
impl UnsafeUnpin for ModelManager
impl !UnwindSafe for ModelManager
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