Enum telegram_bot::Error [−][src]
Telegram-Bot Error: Anything that may fail (HTTP, JSON, ...)
Variants
Http(Error)
HTTP related error
Io(Error)
IO related error (mainly reading the http result)
JsonDecode(DecoderError)
Error while decoding JSON data
JsonEncode(EncoderError)
Error while encoding JSON data
Api(String)
Telegram server reponsded with an error + description
InvalidState(String)
This should never happen (it possibly could if the telegram servers would respond with garbage)
InvalidTokenFormat(ParseError)
Occurs, if the given bot token would not result in a valid request URL.
InvalidEnvironmentVar(VarError)
The given environment variable could not be fetched.
InvalidPath(String)
The given path is not valid.
Trait Implementations
impl Debug for Error
[src]
[+]
impl Debug for Error
impl Error for Error
[src]
[+]
impl Error for Error
impl Display for Error
[src]
[+]
impl Display for Error
impl From<Error> for Error
[src]
[+]
impl From<Error> for Error
impl From<Error> for Error
[src]
[+]
impl From<Error> for Error
impl From<DecoderError> for Error
[src]
[+]
impl From<DecoderError> for Error
impl From<EncoderError> for Error
[src]
[+]
impl From<EncoderError> for Error
impl From<ParseError> for Error
[src]
[+]
impl From<ParseError> for Error
impl From<VarError> for Error
[src]
[+]
impl From<VarError> for Error