pub struct RegisteredModelInstaller { /* private fields */ }Implementations§
Source§impl RegisteredModelInstaller
impl RegisteredModelInstaller
pub fn new(root: impl Into<PathBuf>) -> Result<Self, AcquisitionError>
pub fn with_config(self, config: AcquisitionConfig) -> Self
pub fn installed_path(&self, model: &RegisteredModel) -> PathBuf
pub fn validate( &self, model: &RegisteredModel, package: &Path, ) -> Result<(), AcquisitionError>
pub async fn install( &self, model: &RegisteredModel, source_override: Option<&str>, mode: InstallMode, cancellation: Option<&CancellationToken>, ) -> Result<RegisteredInstallResult, AcquisitionError>
Auto Trait Implementations§
impl !RefUnwindSafe for RegisteredModelInstaller
impl !UnwindSafe for RegisteredModelInstaller
impl Freeze for RegisteredModelInstaller
impl Send for RegisteredModelInstaller
impl Sync for RegisteredModelInstaller
impl Unpin for RegisteredModelInstaller
impl UnsafeUnpin for RegisteredModelInstaller
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