[][src]Enum tbot::errors::HttpWebhook

pub enum HttpWebhook {
    SetWebhook(MethodCall),
    SetWebhookTimeout(Elapsed),
    Server(Error),
}

Represents possible errors that a webhook server may return.

Variants

SetWebhook(MethodCall)

An error during setting the webhook.

SetWebhookTimeout(Elapsed)

Calling the setWebhook method timed out.

Server(Error)

An error while running the server.

Methods

impl HttpWebhook[src]

#[must_use] pub fn is_set_webhook(&self) -> bool[src]

Checks if self is SetWebhook.

#[must_use] pub fn is_set_webhook_timeout(&self) -> bool[src]

Checks if self is SetWebhookTimeout.

#[must_use] pub fn is_server(&self) -> bool[src]

Checks if self is Server.

Trait Implementations

impl Debug for HttpWebhook[src]

impl Display for HttpWebhook[src]

impl Error for HttpWebhook[src]

impl From<Elapsed> for HttpWebhook[src]

impl From<Error> for HttpWebhook[src]

impl From<MethodCall> for HttpWebhook[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.