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.
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>
fn instrument_with_async<F, FnArgs>(self, f: F) -> UpdateHandler<E>
Returns an
UpdateHandler wrapped in an async span.Source§fn instrument_with<F, FnArgs>(self, f: F) -> Self
fn instrument_with<F, FnArgs>(self, f: F) -> Self
Returns an
UpdateHandler wrapped in a span.