pub enum RepoChoice {
Only(Uuid),
Preferred(Uuid, usize),
Ambiguous,
}Expand description
Which of a codebase’s repos to bind, as decided by ResolvedCodebase::choose.
Variants§
Only(Uuid)
The codebase has a single live repo.
Preferred(Uuid, usize)
Several live repos; this one was the first of the preferred ids (given by index into that list).
Ambiguous
Several live repos and none of them is preferred.
Trait Implementations§
Source§impl Clone for RepoChoice
impl Clone for RepoChoice
impl Copy for RepoChoice
Source§impl Debug for RepoChoice
impl Debug for RepoChoice
impl Eq for RepoChoice
Source§impl PartialEq for RepoChoice
impl PartialEq for RepoChoice
impl StructuralPartialEq for RepoChoice
Auto Trait Implementations§
impl Freeze for RepoChoice
impl RefUnwindSafe for RepoChoice
impl Send for RepoChoice
impl Sync for RepoChoice
impl Unpin for RepoChoice
impl UnsafeUnpin for RepoChoice
impl UnwindSafe for RepoChoice
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.