Enum teleborg::error::Error [] [src]

pub enum Error {
    Io(Error),
    HttpError(Error),
    SerializeError(Error),
    RequestError(Error),
    RequestFailed(StatusCode),
    JsonNotFound,
    JsonError(Error),
    TelegramError(String),
}

The Errors which may occur when using the Telegram bot API.

Variants

Contains the status code of the request

Indicates the JSON couldn't be found

Anything that can go wrong with the JSON

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.