Enum viz_core::types::HeaderError
source · pub enum HeaderError {
InvalidName(&'static HeaderName),
MissingName(&'static HeaderName),
InvalidValue(InvalidHeaderValue),
}
Expand description
Rejects with an error when header extraction fails.
Variants§
InvalidName(&'static HeaderName)
Invalid header name.
MissingName(&'static HeaderName)
Missing header name.
InvalidValue(InvalidHeaderValue)
Missing header value.
Trait Implementations§
source§impl Debug for HeaderError
impl Debug for HeaderError
source§impl Display for HeaderError
impl Display for HeaderError
source§impl Error for HeaderError
impl Error for HeaderError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<HeaderError> for Error
impl From<HeaderError> for Error
source§fn from(e: HeaderError) -> Self
fn from(e: HeaderError) -> Self
Converts to this type from the input type.
source§impl IntoResponse for HeaderError
impl IntoResponse for HeaderError
source§fn into_response(self) -> Response
fn into_response(self) -> Response
Convert self to HTTP
Response
.source§fn into_error(self) -> Error
fn into_error(self) -> Error
Convert self to the
Error
.Auto Trait Implementations§
impl Freeze for HeaderError
impl RefUnwindSafe for HeaderError
impl Send for HeaderError
impl Sync for HeaderError
impl Unpin for HeaderError
impl UnwindSafe for HeaderError
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