Trait query_tests_setup::AsyncFn
source · pub trait AsyncFn<'a, A: 'a, B: 'a, T>: Copy + 'static {
type Fut: Future<Output = T> + 'a;
// Required method
fn call(self, a: &'a A, b: &'a B) -> Self::Fut;
}
Expand description
Taken from Reddit. Enables taking an async function pointer which takes references as param https://www.reddit.com/r/rust/comments/jvqorj/hrtb_with_async_functions/
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.