pub enum LspError {
Io(Error),
Client(ClientError),
ServerUnavailable(String),
UnsupportedLanguage(String),
InvalidPath(String),
SymbolNotFound(String),
InvalidPosition(String),
InvalidEdit(String),
}Expand description
Errors from LSP code intelligence operations.
§Variants
Io– I/O error (e.g. reading a source file to resolve symbol positions).Client– LSP client or daemon communication error (wrapsaether_lspd::ClientError).ServerUnavailable– A configured language server could not start or is unavailable.UnsupportedLanguage– No language server is configured for the requested language.InvalidPath– A requested path cannot be represented as a file URI.SymbolNotFound– The requested symbol could not be found.InvalidPosition– The requested source position is invalid.
Variants§
Io(Error)
I/O error (e.g., reading a file)
Client(ClientError)
LSP client / daemon communication error
The language server is configured but unavailable.
UnsupportedLanguage(String)
No language server is configured for the requested language.
InvalidPath(String)
The requested path cannot be represented as a file URI.
SymbolNotFound(String)
The requested symbol could not be found.
InvalidPosition(String)
The requested source position is invalid.
InvalidEdit(String)
An LSP edit produced an invalid or unsupported change.
Trait Implementations§
Source§impl Error for LspError
impl Error for LspError
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()
Source§impl From<ClientError> for LspError
impl From<ClientError> for LspError
Source§fn from(source: ClientError) -> Self
fn from(source: ClientError) -> Self
Converts to this type from the input type.
Source§impl From<LspError> for CodingError
impl From<LspError> for CodingError
Auto Trait Implementations§
impl !RefUnwindSafe for LspError
impl !UnwindSafe for LspError
impl Freeze for LspError
impl Send for LspError
impl Sync for LspError
impl Unpin for LspError
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.