pub enum RepoGate {
InRepo,
NotARepo,
ScannerFailed,
}Expand description
Three-state classification of the scan’s repo gate. Replaces the
earlier in_repo + scanner_ok bool pair so the illegal
“in a repo but the scanner failed” combination is unrepresentable.
Variants§
InRepo
git rev-parse confirmed the cwd is inside a work tree.
NotARepo
The cwd is not inside a work tree, and the scanner’s
repo-existence probe found no .git to contradict that.
ScannerFailed
The rev-parse gate yielded no branch and the repo-existence probe did not rule a repo out: a timeout or oversize read, a checkout git refuses, or a git that would not run. The renderer surfaces a “scanner unhealthy” banner distinct from a legitimate non-repo cwd.
Trait Implementations§
impl Copy for RepoGate
impl Eq for RepoGate
impl StructuralPartialEq for RepoGate
Auto Trait Implementations§
impl Freeze for RepoGate
impl RefUnwindSafe for RepoGate
impl Send for RepoGate
impl Sync for RepoGate
impl Unpin for RepoGate
impl UnsafeUnpin for RepoGate
impl UnwindSafe for RepoGate
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.