Enum lsp_server::ExtractError
source · pub enum ExtractError<T> {
MethodMismatch(T),
JsonError {
method: String,
error: Error,
},
}
Variants§
MethodMismatch(T)
The extracted message was of a different method than expected.
JsonError
Failed to deserialize the message.
Trait Implementations§
source§impl<T: Debug> Debug for ExtractError<T>
impl<T: Debug> Debug for ExtractError<T>
source§impl Display for ExtractError<Notification>
impl Display for ExtractError<Notification>
source§impl Display for ExtractError<Request>
impl Display for ExtractError<Request>
source§impl Error for ExtractError<Notification>
impl Error for ExtractError<Notification>
1.30.0 · 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 Error for ExtractError<Request>
impl Error for ExtractError<Request>
1.30.0 · 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<T> Freeze for ExtractError<T>where
T: Freeze,
impl<T> !RefUnwindSafe for ExtractError<T>
impl<T> Send for ExtractError<T>where
T: Send,
impl<T> Sync for ExtractError<T>where
T: Sync,
impl<T> Unpin for ExtractError<T>where
T: Unpin,
impl<T> !UnwindSafe for ExtractError<T>
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