Enum xkcd::Error
[−]
[src]
pub enum Error { HttpRequest(HttpRequestError), Io(Error), Json(Error), }
Represents errors which occur while using the XKCD API.
Variants
HttpRequest(HttpRequestError)
Error sending a HTTP request to the XKCD API.
Io(Error)
An IO error was encountered.
Json(Error)
Error while serializing or deserializing JSON.
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl StdError for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&StdError>
[src]
The lower-level cause of this error, if any. Read more
impl From<HttpRequestError> for Error
[src]
fn from(error: HttpRequestError) -> Error
[src]
Performs the conversion.