pub enum HttpHeaderError {
InvalidFormat(String),
InvalidUtf8String(Utf8Error),
InvalidValue(String, String),
SizeLimitExceeded(String),
UnsupportedFeature(String, String),
UnsupportedName(String),
UnsupportedValue(String, String),
}
Expand description
Errors associated with a header that is invalid.
Variants§
InvalidFormat(String)
The header is misformatted.
InvalidUtf8String(Utf8Error)
The specified header contains illegal characters.
InvalidValue(String, String)
The value specified is not valid.
SizeLimitExceeded(String)
The content length specified is longer than the limit imposed by Micro Http.
UnsupportedFeature(String, String)
The requested feature is not currently supported.
UnsupportedName(String)
The header specified is not supported.
UnsupportedValue(String, String)
The value for the specified header is not supported.
Trait Implementations§
Source§impl Debug for HttpHeaderError
impl Debug for HttpHeaderError
Source§impl Display for HttpHeaderError
impl Display for HttpHeaderError
Source§impl PartialEq for HttpHeaderError
impl PartialEq for HttpHeaderError
impl Eq for HttpHeaderError
impl StructuralPartialEq for HttpHeaderError
Auto Trait Implementations§
impl Freeze for HttpHeaderError
impl RefUnwindSafe for HttpHeaderError
impl Send for HttpHeaderError
impl Sync for HttpHeaderError
impl Unpin for HttpHeaderError
impl UnwindSafe for HttpHeaderError
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