pub trait AsyncRunner<F, P> {
type Output;
// Required method
async fn run_with_param(f: F, param: P) -> Self::Output;
// Provided method
async fn run(f: F) -> Self::Output
where P: Default { ... }
}Required Associated Types§
Required Methods§
async fn run_with_param(f: F, param: P) -> Self::Output
Provided Methods§
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.