Enum xkcd::HttpRequestError [] [src]

pub enum HttpRequestError {
    Io(Error),
    NotFound(Url),
    Other(Box<StdError>),
    Utf8(Utf8Error),
}

Represents errors which occur when sending an HTTP request to the XKCD API.

Variants

An error occuring during network IO operations.

Error which occurs when a resource was not found at the specified URL.

Any other error occuring during an HTTP request.

Error while parsing bytes as a UTF-8 string.

Methods

impl HttpRequestError
[src]

[src]

Create an error from when the specified resource was not found.

Trait Implementations

impl Debug for HttpRequestError
[src]

[src]

Formats the value using the given formatter.

impl Display for HttpRequestError
[src]

[src]

Formats the value using the given formatter. Read more

impl StdError for HttpRequestError
[src]

[src]

A short description of the error. Read more

[src]

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

impl From<Error> for HttpRequestError
[src]

[src]

Performs the conversion.

impl From<Utf8Error> for HttpRequestError
[src]

[src]

Performs the conversion.

impl From<Error> for HttpRequestError
[src]

[src]

Performs the conversion.