pub struct Catalogs { /* private fields */ }Expand description
The catalogs of one daemon.
Implementations§
Source§impl Catalogs
impl Catalogs
pub fn new(state: &Path) -> Catalogs
pub fn with_fetch(state: &Path, fetch: FetchFn) -> Catalogs
Sourcepub fn configs(&self) -> Result<Vec<CatalogConfig>>
pub fn configs(&self) -> Result<Vec<CatalogConfig>>
The added catalogs.
Sourcepub fn add(&self, c: CatalogConfig) -> Result<()>
pub fn add(&self, c: CatalogConfig) -> Result<()>
Add (or replace) a catalog.
pub fn remove(&self, name: &str) -> Result<()>
Auto Trait Implementations§
impl !Freeze for Catalogs
impl !RefUnwindSafe for Catalogs
impl !UnwindSafe for Catalogs
impl Send for Catalogs
impl Sync for Catalogs
impl Unpin for Catalogs
impl UnsafeUnpin for Catalogs
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