pub enum LspErrorCodes {
RequestFailed,
ServerCancelled,
ContentModified,
RequestCancelled,
Custom(i32),
}Variants§
RequestFailed
A request failed but it was syntactically correct, e.g the method name was known and the parameters were valid. The error message should contain human readable information about why the request failed.
@since 3.17.0
ServerCancelled
The server cancelled the request. This error code should only be used for requests that explicitly support being server cancellable.
@since 3.17.0
ContentModified
The server detected that the content of a document got modified outside normal conditions. A server should NOT send this error code if it detects a content change in it unprocessed messages. The result even computed on an older state might still be useful for the client.
If a client decides that a result is not of any use anymore the client should cancel the request.
RequestCancelled
The client has canceled a request and a server has detected the cancel.
Custom(i32)
A custom value.
Trait Implementations§
Source§impl Clone for LspErrorCodes
impl Clone for LspErrorCodes
Source§fn clone(&self) -> LspErrorCodes
fn clone(&self) -> LspErrorCodes
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LspErrorCodes
impl Debug for LspErrorCodes
Source§impl<'de> Deserialize<'de> for LspErrorCodes
impl<'de> Deserialize<'de> for LspErrorCodes
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<LspErrorCodes> for i32
impl From<LspErrorCodes> for i32
Source§fn from(e: LspErrorCodes) -> Self
fn from(e: LspErrorCodes) -> Self
Source§impl From<i32> for LspErrorCodes
impl From<i32> for LspErrorCodes
Source§impl Hash for LspErrorCodes
impl Hash for LspErrorCodes
Source§impl PartialEq for LspErrorCodes
impl PartialEq for LspErrorCodes
Source§fn eq(&self, other: &LspErrorCodes) -> bool
fn eq(&self, other: &LspErrorCodes) -> bool
self and other values to be equal, and is used by ==.