pub enum UnknownReason {
NoIndexState,
GitUnavailable,
}Expand description
Why FreshnessState::Unknown could not resolve further.
Collapsed together on manifest::freshness_warning’s stderr path (both
read as silence there); distinguished here because a machine reader must
be able to act differently on “never indexed with this feature” than on
“git is unavailable”.
Variants§
NoIndexState
No index-state.json sidecar was found or it did not parse – an
index built before this sidecar existed, or a corrupt one.
git rev-parse HEAD did not resolve – git unavailable, or this root
is not (or is no longer) a git repository.
Implementations§
Trait Implementations§
Source§impl Clone for UnknownReason
impl Clone for UnknownReason
impl Copy for UnknownReason
Source§impl Debug for UnknownReason
impl Debug for UnknownReason
impl Eq for UnknownReason
Source§impl PartialEq for UnknownReason
impl PartialEq for UnknownReason
impl StructuralPartialEq for UnknownReason
Auto Trait Implementations§
impl Freeze for UnknownReason
impl RefUnwindSafe for UnknownReason
impl Send for UnknownReason
impl Sync for UnknownReason
impl Unpin for UnknownReason
impl UnsafeUnpin for UnknownReason
impl UnwindSafe for UnknownReason
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more