pub enum FreshnessState {
Fresh,
Stale {
indexed_head: String,
current_head: String,
changed_files: usize,
},
Unknown {
reason: UnknownReason,
},
}Expand description
The query-time freshness state of an indexed root. Scoped to one root at the moment it is computed; carries no cross-query identity of its own.
Variants§
Fresh
The index matches the working tree: the same HEAD as when it was built, and no indexed file has gone dirty since.
Stale
The index is behind the working tree.
Fields
Unknown
Freshness could not be established either way.
Fields
§
reason: UnknownReasonWhy this could not resolve to Fresh or Stale.
Trait Implementations§
Source§impl Clone for FreshnessState
impl Clone for FreshnessState
Source§impl Debug for FreshnessState
impl Debug for FreshnessState
impl Eq for FreshnessState
Source§impl PartialEq for FreshnessState
impl PartialEq for FreshnessState
impl StructuralPartialEq for FreshnessState
Auto Trait Implementations§
impl Freeze for FreshnessState
impl RefUnwindSafe for FreshnessState
impl Send for FreshnessState
impl Sync for FreshnessState
impl Unpin for FreshnessState
impl UnsafeUnpin for FreshnessState
impl UnwindSafe for FreshnessState
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