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
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
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.
RequestUrlError(String)
We made a request with a bad url
RequestUrlEncodeError(String)
We made a request with a bad url
InvalidServerResponse
The server gave an invalid response.
Trait Implementations
impl PartialEq for StreakError
[src]
fn eq(&self, __arg_0: &StreakError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &StreakError) -> bool
[src]
This method tests for !=
.
impl Eq for StreakError
[src]
impl Clone for StreakError
[src]
fn clone(&self) -> StreakError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for StreakError
[src]
impl Error for StreakError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl Display for StreakError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more