pub enum LspEvent {
Show 16 variants
Started,
Ready,
Indexing {
message: String,
percent: Option<u8>,
},
Diagnostics {
path: PathBuf,
version: Option<u64>,
items: Vec<Diagnostic>,
},
Definition {
id: LspRequestId,
locations: Vec<Location>,
},
Hover {
id: LspRequestId,
hover: Option<HoverText>,
},
Completion {
id: LspRequestId,
items: Vec<CompletionItem>,
},
References {
id: LspRequestId,
locations: Vec<Location>,
},
DocumentSymbols {
id: LspRequestId,
symbols: Vec<DocumentSymbol>,
},
WorkspaceSymbols {
id: LspRequestId,
symbols: Vec<SymbolLocation>,
},
Rename {
id: LspRequestId,
edit: WorkspaceEdit,
},
CodeActions {
id: LspRequestId,
actions: Vec<CodeAction>,
},
Formatting {
id: LspRequestId,
edits: Vec<TextEdit>,
},
Failed {
id: Option<LspRequestId>,
failure: LspFailure,
},
Unavailable {
message: String,
},
Exited {
code: Option<i32>,
},
}Variants§
Started
Ready
Indexing
Diagnostics
Definition
Hover
Completion
References
DocumentSymbols
WorkspaceSymbols
Rename
CodeActions
Formatting
Failed
Exited
Trait Implementations§
impl Eq for LspEvent
impl StructuralPartialEq for LspEvent
Auto Trait Implementations§
impl Freeze for LspEvent
impl RefUnwindSafe for LspEvent
impl Send for LspEvent
impl Sync for LspEvent
impl Unpin for LspEvent
impl UnsafeUnpin for LspEvent
impl UnwindSafe for LspEvent
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