Enum media_types::Error
[−]
[src]
pub enum Error { Invalid, NotFound, Utf8Error(Utf8Error), }
Defines an Error type for media types.
Variants
Invalid
Parsing the given string as a media type failed.
NotFound
The media type does not have this parameter.
Utf8Error(Utf8Error)
Decoding a string as UTF-8 (or ASCII) failed.
Trait Implementations
impl Clone for Error
[src]
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for Error
[src]
impl Debug for Error
[src]
impl Eq for Error
[src]
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 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.