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 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]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<Error> for Error
[src]

fn from(_: Error) -> Error

Performs the conversion.

impl From<FromUtf8Error> for Error
[src]

fn from(err: FromUtf8Error) -> Error

Performs the conversion.