Enum telexide_fork::Error
source · pub enum Error {
Telegram(TelegramError),
Hyper(Error),
IO(Error),
HTTP(Error),
JSON(Error),
Command(CommandError),
}Expand description
A common error enum returned by most of the library’s functionality
Variants§
Telegram(TelegramError)
An error generated within this library
Hyper(Error)
An error from the hyper crate.
IO(Error)
An std::io error.
HTTP(Error)
An error from the http crate.
JSON(Error)
An error from the serde_json crate.
Command(CommandError)
An error happened in a command
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<CommandError> for Error
impl From<CommandError> for Error
source§fn from(d: CommandError) -> Self
fn from(d: CommandError) -> Self
Converts to this type from the input type.
source§impl From<InvalidUri> for Error
impl From<InvalidUri> for Error
source§fn from(e: InvalidUri) -> Self
fn from(e: InvalidUri) -> Self
Converts to this type from the input type.