Skip to main content

UpdateHandler

Type Alias UpdateHandler 

Source
pub type UpdateHandler<Err> = Handler<'static, Result<(), Err>, DpHandlerDescription>;
Expand description

A handler that processes updates from Telegram.

Aliased Type§

pub struct UpdateHandler<Err> { /* private fields */ }

Trait Implementations§

Source§

impl<E: 'static> UpdateHandlerTracingExt<E> for UpdateHandler<E>

Available on crate feature tracing only.
Source§

fn instrument_with_async<F, FnArgs>(self, f: F) -> UpdateHandler<E>
where F: Injectable<Span, FnArgs> + Send + Sync + 'static,

Returns an UpdateHandler wrapped in an async span.
Source§

fn instrument_with<F, FnArgs>(self, f: F) -> Self
where Asyncify<F>: Injectable<Span, FnArgs> + Send + Sync + 'static,

Returns an UpdateHandler wrapped in a span.