pub struct DiagnosticsAnswer {
pub result: DocumentDiagnosticsResult,
pub availability: DiagnosticsAvailability,
pub origin: DiagnosticsOrigin,
}Expand description
A get_diagnostics answer together with the state the cache was in when
it was read.
The state is taken under the same cache lock as the snapshot the result was merged from, so the two cannot disagree.
Fields§
§result: DocumentDiagnosticsResultThe diagnostics of the file.
availability: DiagnosticsAvailabilityWhether the cache has an answer for the file.
origin: DiagnosticsOriginWhere the answer came from.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiagnosticsAnswer
impl RefUnwindSafe for DiagnosticsAnswer
impl Send for DiagnosticsAnswer
impl Sync for DiagnosticsAnswer
impl Unpin for DiagnosticsAnswer
impl UnsafeUnpin for DiagnosticsAnswer
impl UnwindSafe for DiagnosticsAnswer
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