Enum forecast_io::Error [] [src]

pub enum Error {
    Hyper(HyperError),
    Json(JsonError),
    Io(IoError),
    Decode(&'static str, Value),
    Other(&'static str),
}

Variants

Hyper(HyperError)

A hyper crate error

Json(JsonError)

A serde_json crate error

Io(IoError)

A std::io module error

Decode(&'static str, Value)

A json decoding error, with a description and the offending value

Other(&'static str)

A miscellaneous error, with a description

Trait Implementations

impl Debug for Error
[src]

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

Formats the value using the given formatter.

impl From<IoError> for Error
[src]

fn from(err: IoError) -> Error

Performs the conversion.

impl From<HyperError> for Error
[src]

fn from(err: HyperError) -> Error

Performs the conversion.

impl From<JsonError> for Error
[src]

fn from(err: JsonError) -> Error

Performs the conversion.

impl Display for Error
[src]

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

Formats the value using the given formatter.

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