Enum toornament::Error [] [src]

pub enum Error {
    Reqwest(ReqwestError),
    Json(JsonError),
    Io(IoError),
    Date(ParseError),
    Status(StatusCode),
    RateLimited(u64),
    Protocol(&'static str),
    Command(&'static strOutput),
    Other(&'static str),
}

Toornament API error type.

Variants

A reqwest crate error

A serde_json crate error

A std::io module error

A date parse error (chrono crate error)

A generic non-success response from the REST API

A rate limit error, with how many milliseconds to wait before retrying

A Toornament protocol error, with a description

A command execution failure, with a command name and output

A miscellaneous error, with a description

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

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 From<ParseError> 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