Enum actix_web::error::PayloadError [−][src]
pub enum PayloadError { Incomplete, EncodingCorrupted, Overflow, UnknownLength, Io(IoError), Http2(Http2Error), }
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
impl Fail for PayloadError
[src]
impl Fail for PayloadError
fn cause(&self) -> Option<&Fail>
[src]
fn cause(&self) -> Option<&Fail>
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>
[src]
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
Provides context for this failure. Read more
fn compat(self) -> Compat<Self>
[src]
fn compat(self) -> Compat<Self>
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
ⓘImportant traits for Causes<'f>fn causes(&self) -> Causes
[src]
fn causes(&self) -> Causes
Returns a iterator over the causes of this Fail
with itself as the first item and the root_cause
as the final item. Read more
fn root_cause(&self) -> &(Fail + 'static)
[src]
fn root_cause(&self) -> &(Fail + 'static)
Returns the "root cause" of this Fail
- the last value in the cause chain which does not return an underlying cause
. Read more
impl Display for PayloadError
[src]
impl Display for PayloadError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Debug for PayloadError
[src]
impl Debug for PayloadError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<IoError> for PayloadError
[src]
impl From<IoError> for PayloadError
fn from(err: IoError) -> PayloadError
[src]
fn from(err: IoError) -> PayloadError
Performs the conversion.
impl ResponseError for PayloadError
[src]
impl ResponseError for PayloadError
PayloadError
returns two possible results:
Overflow
returnsPayloadTooLarge
- Other errors returns
BadRequest
fn error_response(&self) -> HttpResponse
[src]
fn error_response(&self) -> HttpResponse
Create response for error Read more
impl From<PayloadError> for MultipartError
[src]
impl From<PayloadError> for MultipartError
fn from(err: PayloadError) -> MultipartError
[src]
fn from(err: PayloadError) -> MultipartError
Performs the conversion.
impl From<PayloadError> for UrlencodedError
[src]
impl From<PayloadError> for UrlencodedError
fn from(err: PayloadError) -> UrlencodedError
[src]
fn from(err: PayloadError) -> UrlencodedError
Performs the conversion.
impl From<PayloadError> for JsonPayloadError
[src]
impl From<PayloadError> for JsonPayloadError
fn from(err: PayloadError) -> JsonPayloadError
[src]
fn from(err: PayloadError) -> JsonPayloadError
Performs the conversion.
impl From<PayloadError> for ReadlinesError
[src]
impl From<PayloadError> for ReadlinesError
fn from(err: PayloadError) -> Self
[src]
fn from(err: PayloadError) -> Self
Performs the conversion.
impl From<PayloadError> for ProtocolError
[src]
impl From<PayloadError> for ProtocolError
fn from(err: PayloadError) -> ProtocolError
[src]
fn from(err: PayloadError) -> ProtocolError
Performs the conversion.
Auto Trait Implementations
impl Send for PayloadError
impl Send for PayloadError
impl Sync for PayloadError
impl Sync for PayloadError