Enum distant_core::LspDataParseError
source · [−]pub enum LspDataParseError {
BadContent(LspContentParseError),
BadHeader(LspHeaderParseError),
BadHeaderTermination,
BadInput(FromUtf8Error),
IoError(Error),
UnexpectedEof,
}Variants
BadContent(LspContentParseError)
When the received content is malformed
BadHeader(LspHeaderParseError)
When the received header is malformed
BadHeaderTermination
When a header line is not terminated in \r\n
BadInput(FromUtf8Error)
When input fails to be in UTF-8 format
IoError(Error)
When some unexpected I/O error encountered
UnexpectedEof
When EOF received before data fully acquired
Trait Implementations
sourceimpl Debug for LspDataParseError
impl Debug for LspDataParseError
sourceimpl Display for LspDataParseError
impl Display for LspDataParseError
sourceimpl Error for LspDataParseError
impl Error for LspDataParseError
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>
🔬 This is a nightly-only experimental API. (
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
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Error> for LspDataParseError
impl From<Error> for LspDataParseError
sourcefn from(original: Error) -> LspDataParseError
fn from(original: Error) -> LspDataParseError
Converts to this type from the input type.
sourceimpl From<FromUtf8Error> for LspDataParseError
impl From<FromUtf8Error> for LspDataParseError
sourcefn from(original: FromUtf8Error) -> LspDataParseError
fn from(original: FromUtf8Error) -> LspDataParseError
Converts to this type from the input type.
sourceimpl From<LspContentParseError> for LspDataParseError
impl From<LspContentParseError> for LspDataParseError
sourcefn from(original: LspContentParseError) -> LspDataParseError
fn from(original: LspContentParseError) -> LspDataParseError
Converts to this type from the input type.
sourceimpl From<LspDataParseError> for Error
impl From<LspDataParseError> for Error
sourcefn from(x: LspDataParseError) -> Self
fn from(x: LspDataParseError) -> Self
Converts to this type from the input type.
sourceimpl From<LspHeaderParseError> for LspDataParseError
impl From<LspHeaderParseError> for LspDataParseError
sourcefn from(original: LspHeaderParseError) -> LspDataParseError
fn from(original: LspHeaderParseError) -> LspDataParseError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for LspDataParseError
impl Send for LspDataParseError
impl Sync for LspDataParseError
impl Unpin for LspDataParseError
impl !UnwindSafe for LspDataParseError
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