pub enum LspError {
BackendUnavailable,
CapabilityUnavailable(&'static str),
RequestCancelled(LspRequestId),
Protocol(String),
Io(String),
}Expand description
Typed failure from an LSP backend or adapter boundary.
§Examples
use ailloli_ui_editor::{LspError, LspRequestId};
assert_eq!(LspError::RequestCancelled(LspRequestId(1)), LspError::RequestCancelled(LspRequestId(1)));Variants§
No backend is configured or reachable.
A named optional operation was not advertised or implemented.
RequestCancelled(LspRequestId)
The specified request was cancelled.
Protocol(String)
Protocol/response validation failure with an owned explanation.
Io(String)
Transport or operating-system I/O failure with an owned explanation.
Trait Implementations§
Source§impl Deserialize<'static> for LspError
impl Deserialize<'static> for LspError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LspError
impl StructuralPartialEq for LspError
Auto Trait Implementations§
impl Freeze for LspError
impl RefUnwindSafe for LspError
impl Send for LspError
impl Sync for LspError
impl Unpin for LspError
impl UnwindSafe for LspError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.