Enum darksky::Error [] [src]

pub enum Error {
    Decode(&'static strValue),
    Fmt(FmtError),
    Hyper(HyperError),
    Json(JsonError),
    Io(IoError),
    Uri(UriError),
}

Common result type for the library's Result type. Includes errors for JSON decoding, Io errors, etc.

Variants

A json decoding error, with a description and the value. This occurs when the received value type is not of the expected type.

A std::fmt error

A hyper crate error

A serde_json crate error

A std::io module error

An error while parsing a URI.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl From<FmtError> for Error
[src]

[src]

Performs the conversion.

impl From<HyperError> for Error
[src]

[src]

Performs the conversion.

impl From<IoError> for Error
[src]

[src]

Performs the conversion.

impl From<JsonError> for Error
[src]

[src]

Performs the conversion.

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

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

Auto Trait Implementations

impl Send for Error

impl Sync for Error