Enum telexide::Error [−][src]
pub enum Error { Telegram(TelegramError), Hyper(Error), IO(Error), HTTP(Error), JSON(Error), Command(CommandError), }
A common error enum returned by most of the library’s functionality
Variants
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
impl From<CommandError> for Error
[src]
impl From<CommandError> for Error
[src]fn from(d: CommandError) -> Self
[src]
impl From<InvalidUri> for Error
[src]
impl From<InvalidUri> for Error
[src]fn from(e: InvalidUri) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> UnsafeAny for T where
T: Any,
impl<T> UnsafeAny for T where
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,