Enum cosworth::prelude::ContentTypeError
source · pub enum ContentTypeError {
ParseError,
UnknownEncoding,
}
Expand description
A set of error that can occure during parsing content type
Variants§
Trait Implementations§
source§impl Debug for ContentTypeError
impl Debug for ContentTypeError
source§impl Display for ContentTypeError
impl Display for ContentTypeError
source§impl Fail for ContentTypeError
impl Fail for ContentTypeError
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<ContentTypeError> for ReadlinesError
impl From<ContentTypeError> for ReadlinesError
source§fn from(err: ContentTypeError) -> ReadlinesError
fn from(err: ContentTypeError) -> ReadlinesError
Converts to this type from the input type.
source§impl PartialEq<ContentTypeError> for ContentTypeError
impl PartialEq<ContentTypeError> for ContentTypeError
source§fn eq(&self, other: &ContentTypeError) -> bool
fn eq(&self, other: &ContentTypeError) -> bool
source§impl ResponseError for ContentTypeError
impl ResponseError for ContentTypeError
Return BadRequest
for ContentTypeError
source§fn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Create response for error Read more
impl StructuralPartialEq for ContentTypeError
Auto Trait Implementations§
impl RefUnwindSafe for ContentTypeError
impl Send for ContentTypeError
impl Sync for ContentTypeError
impl Unpin for ContentTypeError
impl UnwindSafe for ContentTypeError
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