pub struct LspPullDiagnosticsCache {
pub document_version: u64,
pub result_id: Option<String>,
}Expand description
4.4.j: cached textDocument/diagnostic state per buffer.
result_id is what the server issued on the previous
response; threading it back in previous_result_id lets
the server answer Unchanged when nothing moved.
Fields§
§document_version: u64§result_id: Option<String>Trait Implementations§
Source§impl Clone for LspPullDiagnosticsCache
impl Clone for LspPullDiagnosticsCache
Source§fn clone(&self) -> LspPullDiagnosticsCache
fn clone(&self) -> LspPullDiagnosticsCache
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 LspPullDiagnosticsCache
impl Debug for LspPullDiagnosticsCache
Source§impl Default for LspPullDiagnosticsCache
impl Default for LspPullDiagnosticsCache
Source§fn default() -> LspPullDiagnosticsCache
fn default() -> LspPullDiagnosticsCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LspPullDiagnosticsCache
impl RefUnwindSafe for LspPullDiagnosticsCache
impl Send for LspPullDiagnosticsCache
impl Sync for LspPullDiagnosticsCache
impl Unpin for LspPullDiagnosticsCache
impl UnsafeUnpin for LspPullDiagnosticsCache
impl UnwindSafe for LspPullDiagnosticsCache
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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