pub enum HeaderParseErrorKind {
HeaderNameParse(InvalidHeaderName),
HeaderValueParse(InvalidHeaderValue),
NoParseCtx,
NoHeaderColon,
}Expand description
Types of header parsing errors. These can come from the http
crate, or internally from tunnelbana-headers.
Variants§
Trait Implementations§
Source§impl Debug for HeaderParseErrorKind
impl Debug for HeaderParseErrorKind
Source§impl Display for HeaderParseErrorKind
impl Display for HeaderParseErrorKind
Source§impl Error for HeaderParseErrorKind
impl Error for HeaderParseErrorKind
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 From<InvalidHeaderName> for HeaderParseErrorKind
impl From<InvalidHeaderName> for HeaderParseErrorKind
Source§fn from(source: InvalidHeaderName) -> Self
fn from(source: InvalidHeaderName) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderValue> for HeaderParseErrorKind
impl From<InvalidHeaderValue> for HeaderParseErrorKind
Source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HeaderParseErrorKind
impl RefUnwindSafe for HeaderParseErrorKind
impl Send for HeaderParseErrorKind
impl Sync for HeaderParseErrorKind
impl Unpin for HeaderParseErrorKind
impl UnwindSafe for HeaderParseErrorKind
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