pub struct InvalidHeaderValueBytes(_);
Expand description
A possible error when converting a HeaderValue
from a string or byte
slice.
Trait Implementations§
source§impl Debug for InvalidHeaderValueBytes
impl Debug for InvalidHeaderValueBytes
source§impl Display for InvalidHeaderValueBytes
impl Display for InvalidHeaderValueBytes
source§impl Error for InvalidHeaderValueBytes
impl Error for InvalidHeaderValueBytes
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
source§impl From<InvalidHeaderValueBytes> for Error
impl From<InvalidHeaderValueBytes> for Error
source§fn from(err: InvalidHeaderValueBytes) -> Error
fn from(err: InvalidHeaderValueBytes) -> Error
Converts to this type from the input type.
source§impl ResponseError for InvalidHeaderValueBytes
impl ResponseError for InvalidHeaderValueBytes
BadRequest
for InvalidHeaderValue
source§fn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Create response for error Read more
Auto Trait Implementations§
impl RefUnwindSafe for InvalidHeaderValueBytes
impl Send for InvalidHeaderValueBytes
impl Sync for InvalidHeaderValueBytes
impl Unpin for InvalidHeaderValueBytes
impl UnwindSafe for InvalidHeaderValueBytes
Blanket Implementations§
§impl<T> AsFail for Twhere
T: Fail,
impl<T> AsFail for Twhere
T: Fail,
§impl<E> Fail for Ewhere
E: 'static + Error + Send + Sync,
impl<E> Fail for Ewhere
E: 'static + Error + Send + Sync,
§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresource§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more