Enum actix_web::error::ContentTypeError
source · pub enum ContentTypeError {
ParseError,
UnknownEncoding,
}
Expand description
A set of error that can occure during parsing content type
Variants
ParseError
Can not parse content type
UnknownEncoding
Unknown content encoding
Trait Implementations
sourceimpl Debug for ContentTypeError
impl Debug for ContentTypeError
sourceimpl Display for ContentTypeError
impl Display for ContentTypeError
sourceimpl Fail for ContentTypeError
impl Fail for ContentTypeError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl From<ContentTypeError> for ReadlinesError
impl From<ContentTypeError> for ReadlinesError
sourcefn from(err: ContentTypeError) -> Self
fn from(err: ContentTypeError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ContentTypeError> for ContentTypeError
impl PartialEq<ContentTypeError> for ContentTypeError
sourcefn eq(&self, other: &ContentTypeError) -> bool
fn eq(&self, other: &ContentTypeError) -> bool
sourceimpl ResponseError for ContentTypeError
impl ResponseError for ContentTypeError
Return BadRequest
for ContentTypeError
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more