pub struct DiscoveryArchive { /* private fields */ }Implementations§
Source§impl DiscoveryArchive
impl DiscoveryArchive
pub fn load( path: PathBuf, ) -> Result<LoadedDiscoveryArchive, DiscoveryArchiveError>
pub fn path(&self) -> &Path
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn record( &mut self, record: impl Into<DiscoveryArchiveRecord>, ) -> Result<(), DiscoveryArchiveError>
pub fn persist(&self) -> Result<(), DiscoveryArchiveError>
Auto Trait Implementations§
impl Freeze for DiscoveryArchive
impl RefUnwindSafe for DiscoveryArchive
impl Send for DiscoveryArchive
impl Sync for DiscoveryArchive
impl Unpin for DiscoveryArchive
impl UnsafeUnpin for DiscoveryArchive
impl UnwindSafe for DiscoveryArchive
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