Enum cosworth::prelude::PayloadError
source · pub enum PayloadError {
Incomplete,
EncodingCorrupted,
Overflow,
UnknownLength,
Io(Error),
Http2(Error),
}
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(Error)
Io error
Http2(Error)
Http2 error
Trait Implementations§
source§impl Debug for PayloadError
impl Debug for PayloadError
source§impl Display for PayloadError
impl Display for PayloadError
source§impl Fail for PayloadError
impl Fail for PayloadError
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<Error> for PayloadError
impl From<Error> for PayloadError
source§fn from(err: Error) -> PayloadError
fn from(err: Error) -> PayloadError
Converts to this type from the input type.
source§impl From<PayloadError> for JsonPayloadError
impl From<PayloadError> for JsonPayloadError
source§fn from(err: PayloadError) -> JsonPayloadError
fn from(err: PayloadError) -> JsonPayloadError
Converts to this type from the input type.
source§impl From<PayloadError> for MultipartError
impl From<PayloadError> for MultipartError
source§fn from(err: PayloadError) -> MultipartError
fn from(err: PayloadError) -> MultipartError
Converts to this type from the input type.
source§impl From<PayloadError> for ReadlinesError
impl From<PayloadError> for ReadlinesError
source§fn from(err: PayloadError) -> ReadlinesError
fn from(err: PayloadError) -> ReadlinesError
Converts to this type from the input type.
source§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 PayloadError
impl ResponseError for PayloadError
PayloadError
returns two possible results:
Overflow
returnsPayloadTooLarge
- Other errors returns
BadRequest
source§fn 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§
§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