pub struct InvalidContentType(/* private fields */);Expand description
A content type is not a valid IANA Media Type.
The message describes which part is malformed. The underlying parser is an implementation detail and not part of the public API.
Trait Implementations§
Source§impl Debug for InvalidContentType
impl Debug for InvalidContentType
Source§impl Display for InvalidContentType
impl Display for InvalidContentType
Source§impl Error for InvalidContentType
impl Error for InvalidContentType
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<InvalidContentType> for Error
impl From<InvalidContentType> for Error
Source§fn from(source: InvalidContentType) -> Self
fn from(source: InvalidContentType) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InvalidContentType
impl RefUnwindSafe for InvalidContentType
impl Send for InvalidContentType
impl Sync for InvalidContentType
impl Unpin for InvalidContentType
impl UnsafeUnpin for InvalidContentType
impl UnwindSafe for InvalidContentType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more