pub struct RepoStore { /* private fields */ }Implementations§
Source§impl RepoStore
impl RepoStore
pub fn load(paths: &Paths, config: &Config) -> Result<Self>
Sourcepub fn resolve(
&mut self,
repo_ref: &RepoRef,
on_missing: OnMissing,
) -> Result<CanonicalRepo>
pub fn resolve( &mut self, repo_ref: &RepoRef, on_missing: OnMissing, ) -> Result<CanonicalRepo>
Resolve repo_ref to a canonical local repo. See the module docs for the lookup order.
Sourcepub fn rescan_if_needed(&mut self) -> Result<()>
pub fn rescan_if_needed(&mut self) -> Result<()>
Scan workdir if it’s never been scanned, or the cache is stale - the same throttled
policy resolve uses on a miss. Exposed so rq repo list reflects the workdir without
requiring an rq fetch to have triggered a scan first.
pub fn save(&self) -> Result<()>
Sourcepub fn list(&self, state: &State) -> Vec<RepoListEntry>
pub fn list(&self, state: &State) -> Vec<RepoListEntry>
Every canonical repo (discovered and tool-managed), with how many tracked workspaces
currently point at it - for rq repo list.
Auto Trait Implementations§
impl Freeze for RepoStore
impl RefUnwindSafe for RepoStore
impl Send for RepoStore
impl Sync for RepoStore
impl Unpin for RepoStore
impl UnsafeUnpin for RepoStore
impl UnwindSafe for RepoStore
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