Enum clarity_repl::repl::debug::dap::codec::ParseError
source · pub enum ParseError {
Body(Error),
Encode(Error),
Headers(Error),
InvalidContentType,
InvalidContentLength(ParseIntError),
MissingContentLength,
Utf8(Utf8Error),
}Expand description
Errors that can occur when processing a DAP message.
Variants§
Body(Error)
Failed to parse the JSON body.
Encode(Error)
Failed to encode the response.
Headers(Error)
Failed to parse headers.
InvalidContentType
The media type in the Content-Type header is invalid.
InvalidContentLength(ParseIntError)
The length value in the Content-Length header is invalid.
MissingContentLength
Request lacks the required Content-Length header.
Utf8(Utf8Error)
Request contains invalid UTF8.
Trait Implementations§
source§impl Debug for ParseError
impl Debug for ParseError
source§impl Display for ParseError
impl Display for ParseError
source§impl Error for ParseError
impl Error for ParseError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for ParseError
impl From<Error> for ParseError
source§impl From<Error> for ParseError
impl From<Error> for ParseError
source§impl From<Error> for ParseError
impl From<Error> for ParseError
source§impl From<ParseIntError> for ParseError
impl From<ParseIntError> for ParseError
source§fn from(error: ParseIntError) -> Self
fn from(error: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl !UnwindSafe for ParseError
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