Enum actix_web::error::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
sourceimpl Debug for UrlencodedError
impl Debug for UrlencodedError
sourceimpl Display for UrlencodedError
impl Display for UrlencodedError
sourceimpl Fail for UrlencodedError
impl Fail for UrlencodedError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl From<PayloadError> for UrlencodedError
impl From<PayloadError> for UrlencodedError
sourcefn from(err: PayloadError) -> UrlencodedError
fn from(err: PayloadError) -> UrlencodedError
Converts to this type from the input type.
sourceimpl ResponseError for UrlencodedError
impl ResponseError for UrlencodedError
Return BadRequest
for UrlencodedError
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more