Enum dbs_uhttp::HttpHeaderError
source · [−]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
sourceimpl Debug for HttpHeaderError
impl Debug for HttpHeaderError
sourceimpl Display for HttpHeaderError
impl Display for HttpHeaderError
sourceimpl PartialEq<HttpHeaderError> for HttpHeaderError
impl PartialEq<HttpHeaderError> for HttpHeaderError
sourcefn eq(&self, other: &HttpHeaderError) -> bool
fn eq(&self, other: &HttpHeaderError) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &HttpHeaderError) -> bool
fn ne(&self, other: &HttpHeaderError) -> bool
This method tests for !=.
impl StructuralPartialEq for HttpHeaderError
Auto Trait Implementations
impl RefUnwindSafe for HttpHeaderError
impl Send for HttpHeaderError
impl Sync for HttpHeaderError
impl Unpin for HttpHeaderError
impl UnwindSafe for HttpHeaderError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more