pub enum InvalidValue {
Error,
Ignore,
}Expand description
What an invalid value means for a section.
Variants§
Error
The section cannot be interpreted. This suits fields whose meaning matters for safety, such as Content-Length.
Ignore
The value is skipped, as RFC 9110 permits for advisory fields such as Accept. A skipped singleton still counts as present, so a second instance is still a duplicate. A required declaration always treats an invalid value as an error.
Trait Implementations§
Source§impl Clone for InvalidValue
impl Clone for InvalidValue
impl Copy for InvalidValue
Source§impl Debug for InvalidValue
impl Debug for InvalidValue
impl Eq for InvalidValue
Source§impl Hash for InvalidValue
impl Hash for InvalidValue
Source§impl PartialEq for InvalidValue
impl PartialEq for InvalidValue
impl StructuralPartialEq for InvalidValue
Auto Trait Implementations§
impl Forget for InvalidValue
impl Freeze for InvalidValue
impl RefUnwindSafe for InvalidValue
impl Send for InvalidValue
impl Sync for InvalidValue
impl Unpin for InvalidValue
impl UnsafeUnpin for InvalidValue
impl UnwindSafe for InvalidValue
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