Enum authy::AuthyError [] [src]

pub enum AuthyError {
    BadRequest(Status),
    UnauthorizedKey(Status),
    Forbidden(Status),
    UserNotFound(Status),
    TooManyRequests(Status),
    InternalServerError(Status),
    ServiceUnavailable,
    IoError(String),
    JsonParseError(String),
    RequestError(String),
    InvalidServerResponse,
}

The error type used by this library.

Variants

There was an error with the request.

Either the API key or the verification token was invalid.

This account does not have access to the requested service.

The authy user could not be found

You have reached the API usage limit.

There was an internal server error.

The authy service was unavailable. Only returned after the configured retry_count.

There was an IO error.

There was an error deserializing a json object.

We made a request the server didn't like.

The server gave an invalid response.

Trait Implementations

impl PartialEq for AuthyError
[src]

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

This method tests for !=.

impl Eq for AuthyError
[src]

impl Clone for AuthyError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for AuthyError
[src]

Formats the value using the given formatter.

impl Display for AuthyError
[src]

Formats the value using the given formatter. Read more

impl From<Error> for AuthyError
[src]

Performs the conversion.

impl From<Error> for AuthyError
[src]

Performs the conversion.

impl From<Error> for AuthyError
[src]

Performs the conversion.