Enum actix_web::error::PayloadError
source · pub enum PayloadError {
Incomplete,
EncodingCorrupted,
Overflow,
UnknownLength,
Io(IoError),
Http2(Http2Error),
}
Expand description
A set of errors that can occur during payload parsing
Variants
Incomplete
A payload reached EOF, but is not complete.
EncodingCorrupted
Content encoding stream corruption
Overflow
A payload reached size limit.
UnknownLength
A payload length is unknown.
Io(IoError)
Io error
Http2(Http2Error)
Http2 error
Trait Implementations
sourceimpl Debug for PayloadError
impl Debug for PayloadError
sourceimpl Display for PayloadError
impl Display for PayloadError
sourceimpl Fail for PayloadError
impl Fail for PayloadError
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<Error> for PayloadError
impl From<Error> for PayloadError
sourcefn from(err: IoError) -> PayloadError
fn from(err: IoError) -> PayloadError
Converts to this type from the input type.
sourceimpl From<PayloadError> for JsonPayloadError
impl From<PayloadError> for JsonPayloadError
sourcefn from(err: PayloadError) -> JsonPayloadError
fn from(err: PayloadError) -> JsonPayloadError
Converts to this type from the input type.
sourceimpl From<PayloadError> for MultipartError
impl From<PayloadError> for MultipartError
sourcefn from(err: PayloadError) -> MultipartError
fn from(err: PayloadError) -> MultipartError
Converts to this type from the input type.
sourceimpl From<PayloadError> for ProtocolError
impl From<PayloadError> for ProtocolError
sourcefn from(err: PayloadError) -> ProtocolError
fn from(err: PayloadError) -> ProtocolError
Converts to this type from the input type.
sourceimpl From<PayloadError> for ReadlinesError
impl From<PayloadError> for ReadlinesError
sourcefn from(err: PayloadError) -> Self
fn from(err: PayloadError) -> Self
Converts to this type from the input type.
sourceimpl 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 PayloadError
impl ResponseError for PayloadError
PayloadError
returns two possible results:
Overflow
returnsPayloadTooLarge
- Other errors returns
BadRequest
sourcefn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Create response for error Read more
Auto Trait Implementations
impl !RefUnwindSafe for PayloadError
impl Send for PayloadError
impl Sync for PayloadError
impl Unpin for PayloadError
impl !UnwindSafe for PayloadError
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