pub enum LspStateRecord<'a> {
Server {
server_ref: u16,
phase: u8,
progress_pct: u8,
caps: u32,
epoch: u32,
refused_edits: u32,
rss: u64,
id: &'a str,
msg: &'a str,
},
}Expand description
One decoded record from an LSP_STATE payload.
Variants§
Server
SERVER 0x01: [kind:1][server_ref:2][phase:1][progress_pct:1][caps:4] [epoch:4][refused_edits:4][rss:8][id_len:2][id:N][msg_len:2][msg:N]
Fields
§
progress_pct: u80-100, or LSP_PROGRESS_UNKNOWN.
Trait Implementations§
Source§impl<'a> Clone for LspStateRecord<'a>
impl<'a> Clone for LspStateRecord<'a>
Source§fn clone(&self) -> LspStateRecord<'a>
fn clone(&self) -> LspStateRecord<'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 LspStateRecord<'a>
impl<'a> Debug for LspStateRecord<'a>
impl<'a> Eq for LspStateRecord<'a>
Source§impl<'a> PartialEq for LspStateRecord<'a>
impl<'a> PartialEq for LspStateRecord<'a>
impl<'a> StructuralPartialEq for LspStateRecord<'a>
Auto Trait Implementations§
impl<'a> Freeze for LspStateRecord<'a>
impl<'a> RefUnwindSafe for LspStateRecord<'a>
impl<'a> Send for LspStateRecord<'a>
impl<'a> Sync for LspStateRecord<'a>
impl<'a> Unpin for LspStateRecord<'a>
impl<'a> UnsafeUnpin for LspStateRecord<'a>
impl<'a> UnwindSafe for LspStateRecord<'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