[−][src]Enum tbot::errors::Polling
Represent possible errors that may happen during the polling event loop.
Variants
Fetching(MethodCall)
Calling GetUpdates
resulted in an error.
Timeout(Elapsed)
Calling GetUpdates
timed out.
Methods
impl Polling
[src]
#[must_use]
pub fn is_fetching(&self) -> bool
[src]
Checks if self
is Fetching
.
#[must_use]
pub fn is_timeout(&self) -> bool
[src]
Checks if self
is Timeout
.
Trait Implementations
impl Debug for Polling
[src]
impl From<Elapsed> for Polling
[src]
impl From<MethodCall> for Polling
[src]
#[must_use]
fn from(error: MethodCall) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Polling
impl Send for Polling
impl Sync for Polling
impl Unpin for Polling
impl !UnwindSafe for Polling
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,