[][src]Struct carapax::Handler

pub struct Handler<C> { /* fields omitted */ }

A regular update handler

Methods

impl<C> Handler<C>[src]

pub fn message<H>(handler: H) -> Self where
    H: MessageHandler<C> + Send + Sync + 'static, 
[src]

Create message handler

pub fn inline_query<H>(handler: H) -> Self where
    H: InlineQueryHandler<C> + Send + Sync + 'static, 
[src]

Create inline query handler

pub fn chosen_inline_result<H>(handler: H) -> Self where
    H: ChosenInlineResultHandler<C> + Send + Sync + 'static, 
[src]

Create chosen inline result handler

pub fn callback_query<H>(handler: H) -> Self where
    H: CallbackQueryHandler<C> + Send + Sync + 'static, 
[src]

Create callback query handler

pub fn shipping_query<H>(handler: H) -> Self where
    H: ShippingQueryHandler<C> + Send + Sync + 'static, 
[src]

Create shipping query handler

pub fn pre_checkout_query<H>(handler: H) -> Self where
    H: PreCheckoutQueryHandler<C> + Send + Sync + 'static, 
[src]

Create pre checkout query handler

pub fn update<H>(handler: H) -> Self where
    H: UpdateHandler<C> + Send + Sync + 'static, 
[src]

Create a regular update handler

Auto Trait Implementations

impl<C> Send for Handler<C>

impl<C> Sync for Handler<C>

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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

impl<T> Erased for T