Enum mediatype::MediaTypeError
source · #[non_exhaustive]pub enum MediaTypeError {
InvalidTypeName,
InvalidSubtypeName,
InvalidSuffix,
InvalidParams,
InvalidParamName,
InvalidParamValue,
}
Expand description
Media-type format error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidTypeName
The top-level type name is not valid.
InvalidSubtypeName
The subtype name is not valid.
InvalidSuffix
The suffix name is not valid.
InvalidParams
The parameter syntax is not valid.
InvalidParamName
An invalid parameter name is detected.
InvalidParamValue
An invalid parameter value is detected.
Trait Implementations§
source§impl Clone for MediaTypeError
impl Clone for MediaTypeError
source§fn clone(&self) -> MediaTypeError
fn clone(&self) -> MediaTypeError
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 MediaTypeError
impl Debug for MediaTypeError
source§impl Display for MediaTypeError
impl Display for MediaTypeError
source§impl Error for MediaTypeError
impl Error for MediaTypeError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 Hash for MediaTypeError
impl Hash for MediaTypeError
source§impl PartialEq for MediaTypeError
impl PartialEq for MediaTypeError
source§fn eq(&self, other: &MediaTypeError) -> bool
fn eq(&self, other: &MediaTypeError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MediaTypeError
impl Eq for MediaTypeError
impl StructuralPartialEq for MediaTypeError
Auto Trait Implementations§
impl Freeze for MediaTypeError
impl RefUnwindSafe for MediaTypeError
impl Send for MediaTypeError
impl Sync for MediaTypeError
impl Unpin for MediaTypeError
impl UnwindSafe for MediaTypeError
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)