pub enum ContextFreshness {
Fresh,
Stale,
Unknown,
}Expand description
Freshness of code/repo context for safe edits (independent of inference-server).
Variants§
Fresh
Index/context is in sync or confidently current.
Stale
Known stale (e.g. index behind HEAD).
Unknown
Cannot determine — treat conservatively in strict modes.
Trait Implementations§
Source§impl Clone for ContextFreshness
impl Clone for ContextFreshness
Source§fn clone(&self) -> ContextFreshness
fn clone(&self) -> ContextFreshness
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContextFreshness
impl Debug for ContextFreshness
Source§impl<'de> Deserialize<'de> for ContextFreshness
impl<'de> Deserialize<'de> for ContextFreshness
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContextFreshness
impl PartialEq for ContextFreshness
Source§fn eq(&self, other: &ContextFreshness) -> bool
fn eq(&self, other: &ContextFreshness) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContextFreshness
impl Serialize for ContextFreshness
impl Copy for ContextFreshness
impl Eq for ContextFreshness
impl StructuralPartialEq for ContextFreshness
Auto Trait Implementations§
impl Freeze for ContextFreshness
impl RefUnwindSafe for ContextFreshness
impl Send for ContextFreshness
impl Sync for ContextFreshness
impl Unpin for ContextFreshness
impl UnsafeUnpin for ContextFreshness
impl UnwindSafe for ContextFreshness
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