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
Api(ApiError)
Error from the Mastodon API. This typically means something went wrong with your authentication or data.
Serde(SerdeError)
Error deserialising to json. Typically represents a breaking change in the Mastodon API
Http(HttpError)
Error encountered in the HTTP backend while requesting a route.
Io(IoError)
Wrapper around the std::io::Error
struct.
Url(UrlError)
Wrapper around the url::ParseError
struct.
ClientIdRequired
Missing Client Id.
ClientSecretRequired
Missing Client Secret.
AccessTokenRequired
Missing Access Token.
Client(StatusCode)
Generic client error.
Server(StatusCode)
Generic server error.
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl StdError for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more
impl From<HttpError> for Error
[src]
impl From<IoError> for Error
[src]
impl From<SerdeError> for Error
[src]
fn from(from: SerdeError) -> Self
[src]
Performs the conversion.