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, UnknownServerResponse(String), }
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.
UnknownServerResponse(String)
Server responded with something we don't know how to make use of.
Trait Implementations
impl PartialEq for AuthyError
[src]
impl PartialEq for AuthyError
fn eq(&self, other: &AuthyError) -> bool
[src]
fn eq(&self, other: &AuthyError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AuthyError) -> bool
[src]
fn ne(&self, other: &AuthyError) -> bool
This method tests for !=
.
impl Eq for AuthyError
[src]
impl Eq for AuthyError
impl Clone for AuthyError
[src]
impl Clone for AuthyError
fn clone(&self) -> AuthyError
[src]
fn clone(&self) -> AuthyError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for AuthyError
[src]
impl Debug for AuthyError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for AuthyError
[src]
impl Error for AuthyError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl Display for AuthyError
[src]
impl Display for AuthyError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<Error> for AuthyError
[src]
impl From<Error> for AuthyError
impl From<Error> for AuthyError
[src]
impl From<Error> for AuthyError
impl From<Error> for AuthyError
[src]
impl From<Error> for AuthyError
Auto Trait Implementations
impl Send for AuthyError
impl Send for AuthyError
impl Sync for AuthyError
impl Sync for AuthyError