[−][src]Struct carapax::Handler
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]
H: MessageHandler<C> + Send + Sync + 'static,
Create message handler
pub fn inline_query<H>(handler: H) -> Self where
H: InlineQueryHandler<C> + Send + Sync + 'static,
[src]
H: InlineQueryHandler<C> + Send + Sync + 'static,
Create inline query handler
pub fn chosen_inline_result<H>(handler: H) -> Self where
H: ChosenInlineResultHandler<C> + Send + Sync + 'static,
[src]
H: ChosenInlineResultHandler<C> + Send + Sync + 'static,
Create chosen inline result handler
pub fn callback_query<H>(handler: H) -> Self where
H: CallbackQueryHandler<C> + Send + Sync + 'static,
[src]
H: CallbackQueryHandler<C> + Send + Sync + 'static,
Create callback query handler
pub fn shipping_query<H>(handler: H) -> Self where
H: ShippingQueryHandler<C> + Send + Sync + 'static,
[src]
H: ShippingQueryHandler<C> + Send + Sync + 'static,
Create shipping query handler
pub fn pre_checkout_query<H>(handler: H) -> Self where
H: PreCheckoutQueryHandler<C> + Send + Sync + 'static,
[src]
H: PreCheckoutQueryHandler<C> + Send + Sync + 'static,
Create pre checkout query handler
pub fn update<H>(handler: H) -> Self where
H: UpdateHandler<C> + Send + Sync + 'static,
[src]
H: UpdateHandler<C> + Send + Sync + 'static,
Create a regular update handler
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,