pub enum HeaderParseError {
EmptyName,
InvalidName,
InvalidValue,
MissingColon,
}Expand description
Error returned when header primitives fail validation or parsing.
Variants§
EmptyName
The header name was empty.
InvalidName
The header name contained invalid token characters.
InvalidValue
The header value contained invalid control characters.
MissingColon
A header line did not contain a colon separator.
Trait Implementations§
Source§impl Clone for HeaderParseError
impl Clone for HeaderParseError
Source§fn clone(&self) -> HeaderParseError
fn clone(&self) -> HeaderParseError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HeaderParseError
impl Debug for HeaderParseError
Source§impl Display for HeaderParseError
impl Display for HeaderParseError
Source§impl Error for HeaderParseError
impl Error for HeaderParseError
1.30.0 · 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 Hash for HeaderParseError
impl Hash for HeaderParseError
Source§impl Ord for HeaderParseError
impl Ord for HeaderParseError
Source§fn cmp(&self, other: &HeaderParseError) -> Ordering
fn cmp(&self, other: &HeaderParseError) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HeaderParseError
impl PartialEq for HeaderParseError
Source§fn eq(&self, other: &HeaderParseError) -> bool
fn eq(&self, other: &HeaderParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for HeaderParseError
impl PartialOrd for HeaderParseError
impl Copy for HeaderParseError
impl Eq for HeaderParseError
impl StructuralPartialEq for HeaderParseError
Auto Trait Implementations§
impl Freeze for HeaderParseError
impl RefUnwindSafe for HeaderParseError
impl Send for HeaderParseError
impl Sync for HeaderParseError
impl Unpin for HeaderParseError
impl UnsafeUnpin for HeaderParseError
impl UnwindSafe for HeaderParseError
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