pub struct CatalogStore { /* private fields */ }Implementations§
Source§impl CatalogStore
impl CatalogStore
pub fn new(home: impl Into<PathBuf>, key: Option<[u8; 32]>) -> Self
pub fn official(home: impl Into<PathBuf>) -> Self
Sourcepub fn load(&self) -> Result<LoadedCatalog, CatalogUpdateError>
pub fn load(&self) -> Result<LoadedCatalog, CatalogUpdateError>
The signed or bundled catalog plus the models the user added from Hugging Face.
Sourcepub fn load_published(&self) -> Result<Catalog, CatalogUpdateError>
pub fn load_published(&self) -> Result<Catalog, CatalogUpdateError>
Only the signed or bundled catalog, without models the user added.
pub fn install(&self, bytes: &[u8]) -> Result<CatalogStatus, CatalogUpdateError>
Source§impl CatalogStore
impl CatalogStore
pub async fn update( &self, transport: &dyn CatalogTransport, ) -> Result<CatalogStatus, CatalogUpdateError>
Auto Trait Implementations§
impl Forget for CatalogStore
impl Freeze for CatalogStore
impl RefUnwindSafe for CatalogStore
impl Send for CatalogStore
impl Sync for CatalogStore
impl Unpin for CatalogStore
impl UnsafeUnpin for CatalogStore
impl UnwindSafe for CatalogStore
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