pub enum LspHeaderParseError {
MissingContentLength,
InvalidContentLength(ParseIntError),
BadHeaderField,
}
Variants§
Trait Implementations§
source§impl Clone for LspHeaderParseError
impl Clone for LspHeaderParseError
source§fn clone(&self) -> LspHeaderParseError
fn clone(&self) -> LspHeaderParseError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LspHeaderParseError
impl Debug for LspHeaderParseError
source§impl Display for LspHeaderParseError
impl Display for LspHeaderParseError
source§impl Error for LspHeaderParseError
impl Error for LspHeaderParseError
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<LspHeaderParseError> for Error
impl From<LspHeaderParseError> for Error
source§fn from(x: LspHeaderParseError) -> Self
fn from(x: LspHeaderParseError) -> Self
Converts to this type from the input type.
source§impl From<LspHeaderParseError> for LspMsgParseError
impl From<LspHeaderParseError> for LspMsgParseError
source§fn from(original: LspHeaderParseError) -> LspMsgParseError
fn from(original: LspHeaderParseError) -> LspMsgParseError
Converts to this type from the input type.
source§impl From<ParseIntError> for LspHeaderParseError
impl From<ParseIntError> for LspHeaderParseError
source§fn from(original: ParseIntError) -> LspHeaderParseError
fn from(original: ParseIntError) -> LspHeaderParseError
Converts to this type from the input type.
source§impl PartialEq<LspHeaderParseError> for LspHeaderParseError
impl PartialEq<LspHeaderParseError> for LspHeaderParseError
source§fn eq(&self, other: &LspHeaderParseError) -> bool
fn eq(&self, other: &LspHeaderParseError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for LspHeaderParseError
impl StructuralEq for LspHeaderParseError
impl StructuralPartialEq for LspHeaderParseError
Auto Trait Implementations§
impl RefUnwindSafe for LspHeaderParseError
impl Send for LspHeaderParseError
impl Sync for LspHeaderParseError
impl Unpin for LspHeaderParseError
impl UnwindSafe for LspHeaderParseError
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