pub enum HelmetError {
InvalidHeaderName(String),
InvalidHeaderValue(String),
}Expand description
Error returned when a header name or value cannot be converted to a valid HTTP header.
Variants§
InvalidHeaderName(String)
The header name is not a valid HTTP header name.
InvalidHeaderValue(String)
The header value is not a valid HTTP header value.
Trait Implementations§
Source§impl Debug for HelmetError
impl Debug for HelmetError
Source§impl Display for HelmetError
impl Display for HelmetError
Source§impl Error for HelmetError
impl Error for HelmetError
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 HelmetError
impl RefUnwindSafe for HelmetError
impl Send for HelmetError
impl Sync for HelmetError
impl Unpin for HelmetError
impl UnsafeUnpin for HelmetError
impl UnwindSafe for HelmetError
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