Enum distant_core::LspSessionInfoError
source · [−]pub enum LspSessionInfoError {
NotInitializeRequest,
MissingSessionInfoParams,
InvalidSessionInfoParams,
SessionInfoParseError(SessionInfoParseError),
}Variants
NotInitializeRequest
Encountered when attempting to create a session from a request that is not initialize
MissingSessionInfoParams
Encountered if missing session parameters within an initialize request
InvalidSessionInfoParams
Encountered if session parameters are not expected types
SessionInfoParseError(SessionInfoParseError)
Encountered when failing to parse session
Trait Implementations
sourceimpl Clone for LspSessionInfoError
impl Clone for LspSessionInfoError
sourcefn clone(&self) -> LspSessionInfoError
fn clone(&self) -> LspSessionInfoError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for LspSessionInfoError
impl Debug for LspSessionInfoError
sourceimpl Display for LspSessionInfoError
impl Display for LspSessionInfoError
sourceimpl Error for LspSessionInfoError
impl Error for LspSessionInfoError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<LspSessionInfoError> for Error
impl From<LspSessionInfoError> for Error
sourcefn from(x: LspSessionInfoError) -> Self
fn from(x: LspSessionInfoError) -> Self
Converts to this type from the input type.
sourceimpl From<SessionInfoParseError> for LspSessionInfoError
impl From<SessionInfoParseError> for LspSessionInfoError
sourcefn from(original: SessionInfoParseError) -> LspSessionInfoError
fn from(original: SessionInfoParseError) -> LspSessionInfoError
Converts to this type from the input type.
sourceimpl PartialEq<LspSessionInfoError> for LspSessionInfoError
impl PartialEq<LspSessionInfoError> for LspSessionInfoError
sourcefn eq(&self, other: &LspSessionInfoError) -> bool
fn eq(&self, other: &LspSessionInfoError) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &LspSessionInfoError) -> bool
fn ne(&self, other: &LspSessionInfoError) -> bool
This method tests for !=.
impl Copy for LspSessionInfoError
impl Eq for LspSessionInfoError
impl StructuralEq for LspSessionInfoError
impl StructuralPartialEq for LspSessionInfoError
Auto Trait Implementations
impl RefUnwindSafe for LspSessionInfoError
impl Send for LspSessionInfoError
impl Sync for LspSessionInfoError
impl Unpin for LspSessionInfoError
impl UnwindSafe for LspSessionInfoError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more