Enum darksky::Error
[−]
[src]
pub enum Error { Decode(&'static str, Value), 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
Decode(&'static str, Value)
A json decoding error, with a description and the value. This occurs when the received value type is not of the expected type.
Fmt(FmtError)
A std::fmt
error
Hyper(HyperError)
A hyper
crate error
Json(JsonError)
A serde_json
crate error
Io(IoError)
A std::io
module error
Uri(UriError)
An error while parsing a URI.
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<FmtError> for Error
[src]
impl From<HyperError> for Error
[src]
fn from(err: HyperError) -> Error
[src]
Performs the conversion.
impl From<IoError> for Error
[src]
impl From<JsonError> for Error
[src]
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> FmtResult
[src]
Formats the value using the given formatter. Read more