Enum cosworth::prelude::MultipartError
source · pub enum MultipartError {
NoContentType,
ParseContentType,
Boundary,
Incomplete,
Parse(ParseError),
Payload(PayloadError),
}
Expand description
A set of errors that can occur during parsing multipart streams
Variants§
NoContentType
Content-Type header is not found
ParseContentType
Can not parse Content-Type header
Boundary
Multipart boundary is not found
Incomplete
Multipart stream is incomplete
Parse(ParseError)
Error during field parsing
Payload(PayloadError)
Payload error
Trait Implementations§
source§impl Debug for MultipartError
impl Debug for MultipartError
source§impl Display for MultipartError
impl Display for MultipartError
source§impl Fail for MultipartError
impl Fail for MultipartError
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<ParseError> for MultipartError
impl From<ParseError> for MultipartError
source§fn from(err: ParseError) -> MultipartError
fn from(err: ParseError) -> MultipartError
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 ResponseError for MultipartError
impl ResponseError for MultipartError
Return BadRequest
for MultipartError
source§fn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Create response for error Read more
Auto Trait Implementations§
impl !RefUnwindSafe for MultipartError
impl Send for MultipartError
impl Sync for MultipartError
impl Unpin for MultipartError
impl !UnwindSafe for MultipartError
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