Enum streak::error::StreakError [] [src]

pub enum StreakError {
    BadRequest(Status),
    UnauthorizedKey(Status),
    Forbidden(Status),
    UserNotFound(Status),
    InternalServerError(Status),
    ServiceUnavailable,
    IoError(String),
    JsonParseError(String),
    RequestError(String),
    RequestUrlError(String),
    RequestUrlEncodeError(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

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.

We made a request with a bad url

We made a request with a bad url

The server gave an invalid response.

Trait Implementations

impl PartialEq for StreakError
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for StreakError
[src]

impl Clone for StreakError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for StreakError
[src]

[src]

Formats the value using the given formatter.

impl Error for StreakError
[src]

[src]

A short description of the error. Read more

[src]

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

impl Display for StreakError
[src]

[src]

Formats the value using the given formatter. Read more

impl From<Error> for StreakError
[src]

[src]

Performs the conversion.

impl From<UrlError> for StreakError
[src]

[src]

Performs the conversion.

impl From<Error> for StreakError
[src]

[src]

Performs the conversion.

impl From<Error> for StreakError
[src]

[src]

Performs the conversion.

impl From<Error> for StreakError
[src]

[src]

Performs the conversion.