Enum cosworth::prelude::UrlencodedError
source · pub enum UrlencodedError {
Chunked,
Overflow,
UnknownLength,
ContentType,
Parse,
Payload(PayloadError),
}
Expand description
A set of errors that can occur during parsing urlencoded payloads
Variants§
Chunked
Can not decode chunked transfer encoding
Overflow
Payload size is bigger than allowed. (default: 256kB)
UnknownLength
Payload size is now known
ContentType
Content type error
Parse
Parse error
Payload(PayloadError)
Payload error
Trait Implementations§
source§impl Debug for UrlencodedError
impl Debug for UrlencodedError
source§impl Display for UrlencodedError
impl Display for UrlencodedError
source§impl Fail for UrlencodedError
impl Fail for UrlencodedError
source§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
source§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 From<PayloadError> for UrlencodedError
impl From<PayloadError> for UrlencodedError
source§fn from(err: PayloadError) -> UrlencodedError
fn from(err: PayloadError) -> UrlencodedError
Converts to this type from the input type.
source§impl ResponseError for UrlencodedError
impl ResponseError for UrlencodedError
Return BadRequest
for UrlencodedError
source§fn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Create response for error Read more
Auto Trait Implementations§
impl !RefUnwindSafe for UrlencodedError
impl Send for UrlencodedError
impl Sync for UrlencodedError
impl Unpin for UrlencodedError
impl !UnwindSafe for UrlencodedError
Blanket Implementations§
§impl<T> AsFail for Twhere
T: Fail,
impl<T> AsFail for Twhere
T: Fail,
source§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