pub struct RepositoryRegistry;Expand description
Foundation APIs only: callers must hold the application lock. These operations register metadata, never initialise Git or touch live dotfiles.
Implementations§
Source§impl RepositoryRegistry
impl RepositoryRegistry
pub fn register( host: &HostContext, lock: &WriterLock, root: &Path, ) -> Result<String>
Sourcepub fn relocate(
host: &HostContext,
lock: &WriterLock,
id: &str,
root: &Path,
) -> Result<()>
pub fn relocate( host: &HostContext, lock: &WriterLock, id: &str, root: &Path, ) -> Result<()>
Preserve the state ID after a deliberate move. Refuse forks or missing manifests.
Auto Trait Implementations§
impl Forget for RepositoryRegistry
impl Freeze for RepositoryRegistry
impl Move for RepositoryRegistry
impl RefUnwindSafe for RepositoryRegistry
impl Send for RepositoryRegistry
impl Sync for RepositoryRegistry
impl Unpin for RepositoryRegistry
impl UnsafeUnpin for RepositoryRegistry
impl UnwindSafe for RepositoryRegistry
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