pub enum ParseMediaTypeError {
InvalidStructure,
TypeName(InvalidRString),
SubtypeName(InvalidRString),
}
Variants§
InvalidStructure
media type (MIME) must consist of two parts separated by a slash.
TypeName(InvalidRString)
invalid media (MIME) type component; {0}
SubtypeName(InvalidRString)
invalid media (MIME) subtype component; {0}
Trait Implementations§
Source§impl Clone for ParseMediaTypeError
impl Clone for ParseMediaTypeError
Source§fn clone(&self) -> ParseMediaTypeError
fn clone(&self) -> ParseMediaTypeError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParseMediaTypeError
impl Debug for ParseMediaTypeError
Source§impl Display for ParseMediaTypeError
impl Display for ParseMediaTypeError
Source§impl Error for ParseMediaTypeError
impl Error for ParseMediaTypeError
1.30.0 · 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<ParseMediaTypeError> for String
impl From<ParseMediaTypeError> for String
Source§fn from(err: ParseMediaTypeError) -> Self
fn from(err: ParseMediaTypeError) -> Self
Converts to this type from the input type.
Source§impl Hash for ParseMediaTypeError
impl Hash for ParseMediaTypeError
Source§impl PartialEq for ParseMediaTypeError
impl PartialEq for ParseMediaTypeError
impl Eq for ParseMediaTypeError
impl StructuralPartialEq for ParseMediaTypeError
Auto Trait Implementations§
impl Freeze for ParseMediaTypeError
impl RefUnwindSafe for ParseMediaTypeError
impl Send for ParseMediaTypeError
impl Sync for ParseMediaTypeError
impl Unpin for ParseMediaTypeError
impl UnwindSafe for ParseMediaTypeError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.