pub struct PullService<'runtime> {
pub acquisition: &'runtime Acquisition,
pub download: &'runtime dyn DownloadTransport,
pub commands: &'runtime dyn CommandRunner,
pub ollama_models: &'runtime Path,
pub studio_models: &'runtime Path,
}Fields§
§acquisition: &'runtime Acquisition§download: &'runtime dyn DownloadTransport§commands: &'runtime dyn CommandRunner§ollama_models: &'runtime Path§studio_models: &'runtime PathImplementations§
Source§impl PullService<'_>
impl PullService<'_>
pub async fn pull( &self, request: &PullRequest, binary: &Path, cancel: &CancellationToken, ) -> Result<PreparedModel, BackendError>
pub async fn pull_at( &self, request: &PullRequest, binary: &Path, endpoint: &str, cancel: &CancellationToken, ) -> Result<PreparedModel, BackendError>
pub async fn pull_at_observed( &self, request: &PullRequest, binary: &Path, endpoint: &str, cancel: &CancellationToken, observer: Option<&LifecycleObserver>, ) -> Result<PreparedModel, BackendError>
Auto Trait Implementations§
impl<'runtime> !RefUnwindSafe for PullService<'runtime>
impl<'runtime> !UnwindSafe for PullService<'runtime>
impl<'runtime> Freeze for PullService<'runtime>
impl<'runtime> Send for PullService<'runtime>
impl<'runtime> Sync for PullService<'runtime>
impl<'runtime> Unpin for PullService<'runtime>
impl<'runtime> UnsafeUnpin for PullService<'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