pub enum ExternalLspError {
ServerNotFound {
executable: String,
},
SpawnFailed(Error),
ServerCrashed {
reason: String,
},
Timeout {
timeout_ms: u64,
},
ProtocolError(String),
InitializationFailed(String),
ConfigError(String),
NoServerForLanguage {
language: String,
},
JsonPathError(String),
TransformationError(String),
StorageError(String),
InvalidConfiguration(String),
}Expand description
Errors that can occur in external LSP operations
Variants§
ServerNotFound
SpawnFailed(Error)
ServerCrashed
Timeout
ProtocolError(String)
InitializationFailed(String)
ConfigError(String)
NoServerForLanguage
JsonPathError(String)
TransformationError(String)
StorageError(String)
InvalidConfiguration(String)
Trait Implementations§
Source§impl Debug for ExternalLspError
impl Debug for ExternalLspError
Source§impl Display for ExternalLspError
impl Display for ExternalLspError
Source§impl Error for ExternalLspError
impl Error for ExternalLspError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ExternalLspError
impl !RefUnwindSafe for ExternalLspError
impl Send for ExternalLspError
impl Sync for ExternalLspError
impl Unpin for ExternalLspError
impl !UnwindSafe for ExternalLspError
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