Enum media_types::Error [] [src]

pub enum Error {
    Invalid,
    NotFound,
    Utf8Error(Utf8Error),
}

Defines an Error type for media types.

Variants

Parsing the given string as a media type failed.

The media type does not have this parameter.

Decoding a string as UTF-8 (or ASCII) failed.

Trait Implementations

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Error
[src]

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Eq for Error
[src]

impl PartialEq for Error
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Error for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl From<Error> for Error
[src]

Performs the conversion.

impl From<FromUtf8Error> for Error
[src]

Performs the conversion.