pub struct CatalogGuard<'a> { /* private fields */ }Expand description
RAII guard for modifying a catalog with automatic publishing on drop.
Obtained via CatalogProducer::lock.
On drop, both the hang and MSF catalog tracks are updated if the catalog was mutated.
Methods from Deref<Target = Catalog>§
pub const DEFAULT_NAME: &'static str = "catalog.json"
Sourcepub fn to_string_pretty(&self) -> Result<String, Error>
pub fn to_string_pretty(&self) -> Result<String, Error>
Serialize the catalog to a pretty string.
Trait Implementations§
Source§impl<'a> Deref for CatalogGuard<'a>
impl<'a> Deref for CatalogGuard<'a>
Source§impl<'a> DerefMut for CatalogGuard<'a>
impl<'a> DerefMut for CatalogGuard<'a>
Auto Trait Implementations§
impl<'a> Freeze for CatalogGuard<'a>
impl<'a> RefUnwindSafe for CatalogGuard<'a>
impl<'a> !Send for CatalogGuard<'a>
impl<'a> Sync for CatalogGuard<'a>
impl<'a> Unpin for CatalogGuard<'a>
impl<'a> UnsafeUnpin for CatalogGuard<'a>
impl<'a> !UnwindSafe for CatalogGuard<'a>
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