#[non_exhaustive]pub enum HeaderParsingErrorType {
Missing {
name: HeaderName,
},
NotUtf8 {
name: HeaderName,
value: Vec<u8>,
},
Parsing {
kind: HeaderType,
name: HeaderName,
value: String,
},
}
Expand description
Type of HeaderParsingError
that occurred.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Missing
Expected header is missing.
Fields
§
name: HeaderName
Name of the header that should be present in the list.
NotUtf8
Header value is not UTF-8 valid.
Parsing
Header value is not of the expected type.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HeaderParsingErrorType
impl RefUnwindSafe for HeaderParsingErrorType
impl Send for HeaderParsingErrorType
impl Sync for HeaderParsingErrorType
impl Unpin for HeaderParsingErrorType
impl UnwindSafe for HeaderParsingErrorType
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