pub struct InMemoryMetadataStore { /* private fields */ }Expand description
In-memory MetadataStore used in tests and the current bootstrap binary.
Implementations§
Trait Implementations§
Source§impl Default for InMemoryMetadataStore
impl Default for InMemoryMetadataStore
Source§impl MetadataStore for InMemoryMetadataStore
impl MetadataStore for InMemoryMetadataStore
fn register_repo(&self, repo_path: PathBuf) -> StorageResult<RepoMetadata>
fn unregister_repo( &self, repo_path: &Path, ) -> StorageResult<Option<RepoMetadata>>
fn get_repo(&self, repo_path: &Path) -> StorageResult<Option<RepoMetadata>>
fn list_repos(&self) -> StorageResult<Vec<RepoMetadata>>
fn update_repo_status( &self, repo_path: &Path, status: RepoStatus, ) -> StorageResult<()>
fn increment_jobs( &self, repo_path: &Path, delta: isize, ) -> StorageResult<RepoMetadata>
fn record_event(&self, repo_path: &Path, when: SystemTime) -> StorageResult<()>
fn current_generation(&self, repo_path: &Path) -> StorageResult<u64>
fn bump_generation(&self, repo_path: &Path) -> StorageResult<u64>
fn mark_dirty_path(&self, repo_path: &Path, path: PathBuf) -> StorageResult<()>
fn drain_dirty_paths(&self, repo_path: &Path) -> StorageResult<Vec<PathBuf>>
fn dirty_path_count(&self, repo_path: &Path) -> StorageResult<usize>
fn set_needs_reconciliation( &self, repo_path: &Path, needs: bool, ) -> StorageResult<()>
fn set_watcher_token(&self, repo_path: &Path, token: u64) -> StorageResult<()>
Auto Trait Implementations§
impl !Freeze for InMemoryMetadataStore
impl RefUnwindSafe for InMemoryMetadataStore
impl Send for InMemoryMetadataStore
impl Sync for InMemoryMetadataStore
impl Unpin for InMemoryMetadataStore
impl UnwindSafe for InMemoryMetadataStore
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