pub struct ModelInstaller { /* private fields */ }Implementations§
Source§impl ModelInstaller
impl ModelInstaller
pub fn new(root: impl Into<PathBuf>) -> Self
pub fn with_catalog<C: ModelCatalog + 'static>(self, catalog: Arc<C>) -> Self
pub fn with_config(self, config: AcquisitionConfig) -> Self
pub async fn install<S: ModelSource>( &self, source: &S, request: &ModelFetchRequest, mode: InstallMode, cancellation: Option<&CancellationToken>, ) -> Result<InstallResult, AcquisitionError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ModelInstaller
impl !UnwindSafe for ModelInstaller
impl Freeze for ModelInstaller
impl Send for ModelInstaller
impl Sync for ModelInstaller
impl Unpin for ModelInstaller
impl UnsafeUnpin for ModelInstaller
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