pub enum TelegramPollingRuntimeError {
Transport(String),
Polling(TelegramPollingError),
}Expand description
Errors that can interrupt the long-polling loop.
Variants§
Transport(String)
Polling(TelegramPollingError)
Trait Implementations§
Source§impl Debug for TelegramPollingRuntimeError
impl Debug for TelegramPollingRuntimeError
Source§impl Error for TelegramPollingRuntimeError
impl Error for TelegramPollingRuntimeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<TelegramPollingError> for TelegramPollingRuntimeError
impl From<TelegramPollingError> for TelegramPollingRuntimeError
Source§fn from(value: TelegramPollingError) -> Self
fn from(value: TelegramPollingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TelegramPollingRuntimeError
impl RefUnwindSafe for TelegramPollingRuntimeError
impl Send for TelegramPollingRuntimeError
impl Sync for TelegramPollingRuntimeError
impl Unpin for TelegramPollingRuntimeError
impl UnsafeUnpin for TelegramPollingRuntimeError
impl UnwindSafe for TelegramPollingRuntimeError
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