Enum randomorg::Error [] [src]

pub enum Error {
    Reqwest(ReqwestError),
    Json(JsonError),
    Io(IoError),
    RandomOrg(StatusCodeResponseError),
    Status(StatusCodeString),
    Rest(&'static str),
}

Random.org API crate error type.

Variants

A reqwest crate error

A serde_json crate error

A std::io module error

A error common toornament service error

A generic non-success response from the REST API

A rest-api error

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl From<Response> for Error
[src]

Performs the conversion.

impl From<IoError> for Error
[src]

Performs the conversion.

impl From<ReqwestError> for Error
[src]

Performs the conversion.

impl From<JsonError> for Error
[src]

Performs the conversion.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

A short description of the error. Read more

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