Enum elefren::errors::Error[][src]

pub enum Error {
    Api(ApiError),
    Serde(SerdeError),
    UrlEncoded(UrlEncodedError),
    Http(HttpError),
    Io(IoError),
    Url(UrlError),
    ClientIdRequired,
    ClientSecretRequired,
    AccessTokenRequired,
    Client(StatusCode),
    Server(StatusCode),
    DataMissing,
    MissingField(&'static str),
    TomlSer(TomlSerError),
    TomlDe(TomlDeError),
}

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 serializing to url-encoded string

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.

MastodonBuilder error.

AppBuilder error

Error serializing to toml

Error deserializing from toml

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

This method is soft-deprecated. Read more

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

impl From<HttpError> for Error
[src]

Performs the conversion.

impl From<IoError> for Error
[src]

Performs the conversion.

impl From<SerdeError> for Error
[src]

Performs the conversion.

impl From<UrlEncodedError> for Error
[src]

Performs the conversion.

impl From<UrlError> for Error
[src]

Performs the conversion.

impl From<ApiError> for Error
[src]

Performs the conversion.

impl From<TomlSerError> for Error
[src]

Performs the conversion.

impl From<TomlDeError> for Error
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error