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
BadRequest(Status)
There was an error with the request.
Either the API key or the verification token was invalid.
Forbidden(Status)
This account does not have access to the requested service.
UserNotFound(Status)
The authy user could not be found
TooManyRequests(Status)
You have reached the API usage limit.
InternalServerError(Status)
There was an internal server error.
The authy service was unavailable. Only returned after the configured retry_count
.
IoError(String)
There was an IO error.
JsonParseError(String)
There was an error deserializing a json object.
RequestError(String)
We made a request the server didn't like.
InvalidServerResponse
The server gave an invalid response.
Trait Implementations
impl PartialEq for AuthyError
[src]
fn eq(&self, __arg_0: &AuthyError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AuthyError) -> bool
This method tests for !=
.
impl Eq for AuthyError
[src]
impl Clone for AuthyError
[src]
fn clone(&self) -> AuthyError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more