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 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.