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

Generated by when a request tries to access an resource it is not authorized for

Generated by a failure to find a requested resource

Generated by unknown server failures from the remote server

Generated by a bad request response from the server with a reason attached

Generated by a failure to parse an API response

Generated by the networking client

Generated by handling of network responses

Generated when an endpoint string can not be parsed

Trait Implementations

impl Debug for MMCError
[src]

Formats the value using the given formatter.

impl Display for MMCError
[src]

Formats the value using the given formatter. Read more

impl Error for MMCError
[src]

A short description of the error. Read more

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

impl From<FromUtf8Error> for MMCError
[src]

Performs the conversion.

impl From<Error> for MMCError
[src]

Performs the conversion.

impl From<Error> for MMCError
[src]

Performs the conversion.