pub struct Placement {
pub registered: PathBuf,
pub destination: PathBuf,
pub competing: bool,
pub needs_repair: bool,
pub common_dir: PathBuf,
pub source: PathBuf,
/* private fields */
}Expand description
Git registration and candidate paths used to reconcile a moved workspace.
Fields§
§registered: PathBufLocation reported by Git registration.
destination: PathBufLocation of the participant worktree.
competing: boolTrue when both locations have files that could belong to the same worktree.
needs_repair: boolWhether the Git links require reconciliation.
common_dir: PathBufGit administration directory shared by the repository’s worktrees.
source: PathBufPath to the backing repository.
Implementations§
Source§impl Placement
impl Placement
Sourcepub fn diagnostic(&self) -> Problem
pub fn diagnostic(&self) -> Problem
Problem discovered while resolving placement.
Sourcepub fn update_hint(&self, participant: &mut Participant, workspace: &Path)
pub fn update_hint(&self, participant: &mut Participant, workspace: &Path)
Refresh the participant hint from verified placement.
Trait Implementations§
impl Eq for Placement
impl StructuralPartialEq for Placement
Auto Trait Implementations§
impl Forget for Placement
impl Freeze for Placement
impl Move for Placement
impl RefUnwindSafe for Placement
impl Send for Placement
impl Sync for Placement
impl Unpin for Placement
impl UnsafeUnpin for Placement
impl UnwindSafe for Placement
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