[−][src]Enum actix_web::error::PayloadError
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 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<Error> for PayloadError
[src]
impl From<Error> for PayloadError
fn from(err: IoError) -> PayloadError
[src]
fn from(err: IoError) -> PayloadError
Performs the conversion.
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.
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 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,
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>
fn compat(self) -> Compat<Self>
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
Auto Trait Implementations
impl Send for PayloadError
impl Send for PayloadError
impl Sync for PayloadError
impl Sync for PayloadError
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
fn cause(&self) -> Option<&(Fail + 'static)>
fn cause(&self) -> Option<&(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 more
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
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>
fn compat(self) -> Compat<Self>
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
impl<T> Erased for T
impl<T> Erased for T