Enum mammut::Error [] [src]

pub enum Error {
    Api(ApiError),
    Serde(SerdeError),
    Http(HttpError),
    Io(IoError),
    Url(UrlError),
    ClientIdRequired,
    ClientSecretRequired,
    AccessTokenRequired,
    Client(StatusCode),
    Server(StatusCode),
}

enum of possible errors encountered using the mastodon API.

Variants

Error from the Mastodon API. This typically means something went wrong with your authentication or data.

Error deserialising to json. Typically represents a breaking change in the Mastodon API

Error encountered in the HTTP backend while requesting a route.

Wrapper around the std::io::Error struct.

Wrapper around the url::ParseError struct.

Missing Client Id.

Missing Client Secret.

Missing Access Token.

Generic client error.

Generic server error.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

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

impl From<HttpError> for Error
[src]

[src]

Performs the conversion.

impl From<IoError> for Error
[src]

[src]

Performs the conversion.

impl From<SerdeError> for Error
[src]

[src]

Performs the conversion.

impl From<UrlError> for Error
[src]

[src]

Performs the conversion.