pub trait InstrumentedFutureContext<T> {
// Required method
fn on_result(self, result: &T);
}Expand description
Trait for handling the completion of instrumented futures.
This trait provides a callback mechanism to perform actions when an instrumented future completes with a result. It’s typically used for recording metrics, logging outcomes, or other side effects based on the future’s result.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".