pub enum DiagnosticsOrigin {
Pull,
PushCache,
CacheAfterFailedPull,
}Expand description
Where a get_diagnostics answer came from.
Variants§
Pull
A textDocument/diagnostic pull, merged with the push cache.
PushCache
The push cache alone, because the server advertises no pull provider.
CacheAfterFailedPull
The pull request failed, so the push cache and the last stored pull answered.
Trait Implementations§
Source§impl Clone for DiagnosticsOrigin
impl Clone for DiagnosticsOrigin
impl Copy for DiagnosticsOrigin
Source§impl Debug for DiagnosticsOrigin
impl Debug for DiagnosticsOrigin
impl Eq for DiagnosticsOrigin
Source§impl JsonSchema for DiagnosticsOrigin
impl JsonSchema for DiagnosticsOrigin
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 DiagnosticsOrigin
impl PartialEq for DiagnosticsOrigin
Source§impl Serialize for DiagnosticsOrigin
impl Serialize for DiagnosticsOrigin
impl StructuralPartialEq for DiagnosticsOrigin
Auto Trait Implementations§
impl Freeze for DiagnosticsOrigin
impl RefUnwindSafe for DiagnosticsOrigin
impl Send for DiagnosticsOrigin
impl Sync for DiagnosticsOrigin
impl Unpin for DiagnosticsOrigin
impl UnsafeUnpin for DiagnosticsOrigin
impl UnwindSafe for DiagnosticsOrigin
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<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.