Enum omdb::Error [] [src]

pub enum Error {
    Http(HyperError),
    Status(StatusCode),
    Json(SerdeError),
    Api(String),
    Other(&'static str),
}

Variants

An error originating from Hyper.

An unexpected HTTP status code.

Error deserializing Api's JSON.

An error from OMDb.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl StdError for Error
[src]

A short description of the error. Read more

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

impl From<HyperError> for Error
[src]

Performs the conversion.

impl From<SerdeError> for Error
[src]

Performs the conversion.

impl Display for Error
[src]

Formats the value using the given formatter. Read more