pub trait UpdateHandlerTracingExt<E> {
// Required methods
fn instrument_with_async<F, FnArgs>(self, f: F) -> Self
where F: Injectable<Span, FnArgs> + Send + Sync + 'static;
fn instrument_with<F, FnArgs>(self, f: F) -> Self
where Asyncify<F>: Injectable<Span, FnArgs> + Send + Sync + 'static;
}Available on crate feature
tracing only.Required Methods§
Sourcefn instrument_with_async<F, FnArgs>(self, f: F) -> Self
fn instrument_with_async<F, FnArgs>(self, f: F) -> Self
Returns an UpdateHandler wrapped in an async span.
Sourcefn instrument_with<F, FnArgs>(self, f: F) -> Self
fn instrument_with<F, FnArgs>(self, f: F) -> Self
Returns an UpdateHandler wrapped in a span.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.