pub enum Error {
ParseError(Error),
IOError(Error),
RequestError(Error),
TelegramError(TelegramError),
}
Expand description
Any error that may occur when sending a request to Telegram’s API
Variants§
ParseError(Error)
Error while parsing the query result. This error should never occur, if it does, please open a issue on the repo
IOError(Error)
Error while reading files to upload
RequestError(Error)
Error while communicating with the Telegram server
TelegramError(TelegramError)
Error returned by the API
Trait Implementations§
Source§impl From<TelegramError> for Error
impl From<TelegramError> for Error
Source§fn from(e: TelegramError) -> Self
fn from(e: TelegramError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more