Enum omdb::Error
[−]
[src]
pub enum Error { Http(HyperError), Status(StatusCode), Json(SerdeError), Api(String), Other(&'static str), }
Variants
Http(HyperError)
An error originating from Hyper.
Status(StatusCode)
An unexpected HTTP status code.
Json(SerdeError)
Error deserializing Api's JSON.
Api(String)
An error from OMDb.
Other(&'static str)
Trait Implementations
impl Debug for Error
[src]
impl StdError for Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&StdError>
The lower-level cause of this error, if any. Read more
impl From<HyperError> for Error
[src]
fn from(err: HyperError) -> Error
Performs the conversion.
impl From<SerdeError> for Error
[src]
fn from(err: SerdeError) -> Error
Performs the conversion.