Enum mm_client::MMCError
[−]
[src]
pub enum MMCError { NotAuthorized, ResourceNotFound, APIFailure(StatusCode), BadRequest(String), Convert(FromUtf8Error), Network(Error), Io(Error), UnknownEndpoint(String), }
Error type that represents failures from Client
Variants
NotAuthorized
Generated by when a request tries to access an resource it is not authorized for
ResourceNotFound
Generated by a failure to find a requested resource
APIFailure(StatusCode)
Generated by unknown server failures from the remote server
BadRequest(String)
Generated by a bad request response from the server with a reason attached
Convert(FromUtf8Error)
Generated by a failure to parse an API response
Network(Error)
Generated by the networking client
Io(Error)
Generated by handling of network responses
UnknownEndpoint(String)
Generated when an endpoint string can not be parsed
Trait Implementations
impl Debug for MMCError
[src]
impl Display for MMCError
[src]
impl Error for MMCError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<FromUtf8Error> for MMCError
[src]
fn from(err: FromUtf8Error) -> MMCError
Performs the conversion.