pub enum LspDiagRecord<'a> {
File {
hash: LspHash,
n: u16,
path: &'a str,
},
Diag {
severity: u8,
flags: u8,
line: u32,
col: u32,
end_line: u32,
end_col: u32,
code: &'a str,
source: &'a str,
msg: &'a str,
},
}Expand description
One decoded record from an LSP_DIAG payload.
Variants§
File
FILE 0x01: [kind:1][hash:16][n:2][path_len:2][path:N]
Replaces the file’s entire diagnostic set (the following n
Diag records); n = 0 clears. hash names the content version
the set describes; zero when unknown.
Diag
DIAG 0x02: [kind:1][severity:1][flags:1][line:4][col:4][end_line:4][end_col:4] [code_len:2][code:N][src_len:2][source:N][msg_len:4][msg:N]
Trait Implementations§
Source§impl<'a> Clone for LspDiagRecord<'a>
impl<'a> Clone for LspDiagRecord<'a>
Source§fn clone(&self) -> LspDiagRecord<'a>
fn clone(&self) -> LspDiagRecord<'a>
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<'a> Debug for LspDiagRecord<'a>
impl<'a> Debug for LspDiagRecord<'a>
impl<'a> Eq for LspDiagRecord<'a>
Source§impl<'a> PartialEq for LspDiagRecord<'a>
impl<'a> PartialEq for LspDiagRecord<'a>
impl<'a> StructuralPartialEq for LspDiagRecord<'a>
Auto Trait Implementations§
impl<'a> Freeze for LspDiagRecord<'a>
impl<'a> RefUnwindSafe for LspDiagRecord<'a>
impl<'a> Send for LspDiagRecord<'a>
impl<'a> Sync for LspDiagRecord<'a>
impl<'a> Unpin for LspDiagRecord<'a>
impl<'a> UnsafeUnpin for LspDiagRecord<'a>
impl<'a> UnwindSafe for LspDiagRecord<'a>
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