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), HeaderStrError(HeaderStrError), HeaderParseError(HeaderParseError), }
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
UrlEncoded(UrlEncodedError)
Error serializing to url-encoded string
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.
DataMissing
MastodonBuilder error.
MissingField(&'static str)
AppBuilder error
TomlSer(TomlSerError)
Error serializing to toml
TomlDe(TomlDeError)
Error deserializing from toml
HeaderStrError(HeaderStrError)
Error converting an http header to a string
HeaderParseError(HeaderParseError)
Error parsing the http Link header
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for Error
[src]
impl Error for Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<HttpError> for Error
[src]
impl From<HttpError> for Error
impl From<IoError> for Error
[src]
impl From<IoError> for Error
impl From<SerdeError> for Error
[src]
impl From<SerdeError> for Error
fn from(from: SerdeError) -> Self
[src]
fn from(from: SerdeError) -> Self
Performs the conversion.
impl From<UrlEncodedError> for Error
[src]
impl From<UrlEncodedError> for Error
fn from(from: UrlEncodedError) -> Self
[src]
fn from(from: UrlEncodedError) -> Self
Performs the conversion.
impl From<UrlError> for Error
[src]
impl From<UrlError> for Error
impl From<ApiError> for Error
[src]
impl From<ApiError> for Error
impl From<TomlSerError> for Error
[src]
impl From<TomlSerError> for Error
fn from(from: TomlSerError) -> Self
[src]
fn from(from: TomlSerError) -> Self
Performs the conversion.
impl From<TomlDeError> for Error
[src]
impl From<TomlDeError> for Error
fn from(from: TomlDeError) -> Self
[src]
fn from(from: TomlDeError) -> Self
Performs the conversion.
impl From<HeaderStrError> for Error
[src]
impl From<HeaderStrError> for Error
fn from(from: HeaderStrError) -> Self
[src]
fn from(from: HeaderStrError) -> Self
Performs the conversion.
impl From<HeaderParseError> for Error
[src]
impl From<HeaderParseError> for Error
fn from(from: HeaderParseError) -> Self
[src]
fn from(from: HeaderParseError) -> Self
Performs the conversion.