pub struct BadHeaderName {
pub header: String,
pub invalid_char: char,
}
Expand description
Error type with information on invalid HTTP header name.
Fields§
§header: String
The name of the bad header.
invalid_char: char
The illegal character in the header name.
Trait Implementations§
Source§impl Debug for BadHeaderName
impl Debug for BadHeaderName
Source§impl Display for BadHeaderName
impl Display for BadHeaderName
Source§impl Error for BadHeaderName
impl Error for BadHeaderName
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()
Auto Trait Implementations§
impl Freeze for BadHeaderName
impl RefUnwindSafe for BadHeaderName
impl Send for BadHeaderName
impl Sync for BadHeaderName
impl Unpin for BadHeaderName
impl UnwindSafe for BadHeaderName
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