Skip to main content

UpdateHandlerTracingExt

Trait UpdateHandlerTracingExt 

Source
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§

Source

fn instrument_with_async<F, FnArgs>(self, f: F) -> Self
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.

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.

Implementors§