pub struct IndexCoverage {
pub synced_documents: u32,
pub server_restarted: bool,
}Expand description
What an empty references or workspace-symbol answer covers.
A language server that indexes only documents sent with didOpen answers an empty list for
symbols in files this session never opened, so an empty answer is not proof of absence.
Fields§
§synced_documents: u32Documents currently tracked as synced to the server process; LRU eviction lowers it.
server_restarted: boolSet only when the server was restarted or respawned; stays set for the rest of the session.
Trait Implementations§
Source§impl Clone for IndexCoverage
impl Clone for IndexCoverage
impl Copy for IndexCoverage
Source§impl Debug for IndexCoverage
impl Debug for IndexCoverage
Source§impl<'de> Deserialize<'de> for IndexCoverage
impl<'de> Deserialize<'de> for IndexCoverage
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
impl Eq for IndexCoverage
Source§impl JsonSchema for IndexCoverage
impl JsonSchema for IndexCoverage
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for IndexCoverage
impl PartialEq for IndexCoverage
Source§impl Serialize for IndexCoverage
impl Serialize for IndexCoverage
impl StructuralPartialEq for IndexCoverage
Auto Trait Implementations§
impl Freeze for IndexCoverage
impl RefUnwindSafe for IndexCoverage
impl Send for IndexCoverage
impl Sync for IndexCoverage
impl Unpin for IndexCoverage
impl UnsafeUnpin for IndexCoverage
impl UnwindSafe for IndexCoverage
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.