pub struct ModelBundleStore { /* private fields */ }Expand description
Data type for model bundle store.
Implementations§
Source§impl ModelBundleStore
impl ModelBundleStore
Sourcepub fn downloader(self, downloader: HuggingFaceDownloader) -> Self
pub fn downloader(self, downloader: HuggingFaceDownloader) -> Self
Returns downloader.
Sourcepub fn model_downloader(
self,
downloader: impl ModelDownloader + Send + Sync + 'static,
) -> Self
pub fn model_downloader( self, downloader: impl ModelDownloader + Send + Sync + 'static, ) -> Self
Sets a custom downloader implementation.
Sourcepub fn bundle_dir(&self, spec: &HuggingFaceModelSpec) -> PathBuf
pub fn bundle_dir(&self, spec: &HuggingFaceModelSpec) -> PathBuf
Returns bundle dir.
Sourcepub fn download(&self, spec: &HuggingFaceModelSpec) -> Result<ModelBundle>
pub fn download(&self, spec: &HuggingFaceModelSpec) -> Result<ModelBundle>
Returns download.
Sourcepub fn materialize(&self, downloaded: &DownloadedModel) -> Result<ModelBundle>
pub fn materialize(&self, downloaded: &DownloadedModel) -> Result<ModelBundle>
Returns materialize.
Trait Implementations§
Source§impl Clone for ModelBundleStore
impl Clone for ModelBundleStore
Source§fn clone(&self) -> ModelBundleStore
fn clone(&self) -> ModelBundleStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for ModelBundleStore
impl !UnwindSafe for ModelBundleStore
impl Freeze for ModelBundleStore
impl Send for ModelBundleStore
impl Sync for ModelBundleStore
impl Unpin for ModelBundleStore
impl UnsafeUnpin for ModelBundleStore
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