Enum ntex::http::error::ContentTypeError [−][src]
pub enum ContentTypeError { ParseError, UnknownEncoding, Unexpected, Expected, }
Expand description
A set of error that can occure during parsing content type
Variants
Cannot parse content type
Unknown content encoding
Unexpected Content-Type
Content-Type is expected
Trait Implementations
impl Debug for ContentTypeError
[src]
impl Debug for ContentTypeError
[src]impl Display for ContentTypeError
[src]
impl Display for ContentTypeError
[src]impl From<ContentTypeError> for PayloadError
[src]
impl From<ContentTypeError> for PayloadError
[src]fn from(original: ContentTypeError) -> PayloadError
[src]
fn from(original: ContentTypeError) -> PayloadError
[src]Performs the conversion.
impl PartialEq<ContentTypeError> for ContentTypeError
[src]
impl PartialEq<ContentTypeError> for ContentTypeError
[src]impl WebResponseError<DefaultError> for ContentTypeError
[src]
impl WebResponseError<DefaultError> for ContentTypeError
[src]Return BadRequest
for ContentTypeError
fn status_code(&self) -> StatusCode
[src]
fn status_code(&self) -> StatusCode
[src]Response’s status code Read more
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]Generate response for error Read more
impl StructuralPartialEq for ContentTypeError
[src]
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self