Enum media_types::Error
[−]
[src]
pub enum Error {
Invalid,
NotFound,
Utf8Error(Utf8Error),
}Defines an Error type for media types.
Variants
InvalidParsing the given string as a media type failed.
NotFoundThe media type does not have this parameter.
Utf8Error(Utf8Error)Decoding a string as UTF-8 (or ASCII) failed.
Trait Implementations
impl PartialEq for Error[src]
fn eq(&self, __arg_0: &Error) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Error) -> bool
This method tests for !=.
impl Eq for Error[src]
impl Debug for Error[src]
impl Error for Error[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl Display for Error[src]
impl From<Error> for Error[src]
impl From<FromUtf8Error> for Error[src]
fn from(err: FromUtf8Error) -> Error
Performs the conversion.