Enum xkcd::Error [] [src]

pub enum Error {
    HttpRequest(HttpRequestError),
    Io(Error),
    Json(Error),
}
[]

Represents errors which occur while using the XKCD API.

Variants

[]

Error sending a HTTP request to the XKCD API.

[]

An IO error was encountered.

[]

Error while serializing or deserializing JSON.

Trait Implementations

impl Debug for Error
[src]

[src]
[]

Formats the value using the given formatter.

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

[src]
[]

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

impl From<HttpRequestError> for Error
[src]

[src]
[]

Performs the conversion.

impl From<Error> for Error
[src]

[src]
[]

Performs the conversion.

impl From<Error> for Error
[src]

[src]
[]

Performs the conversion.

impl PartialEq<Error> for Error
[src]

[src]
[]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]
[]

This method tests for !=.