pub trait AsyncFunc<Args, Ret> {
// Required method
fn call<'a, 'async_trait>(
&'a self,
args: Args,
) -> Pin<Box<dyn Future<Output = Ret> + Send + 'async_trait>>
where Args: 'a,
Ret: 'a,
Self: 'async_trait,
'a: 'async_trait;
}Required Methods§
fn call<'a, 'async_trait>(
&'a self,
args: Args,
) -> Pin<Box<dyn Future<Output = Ret> + Send + 'async_trait>>where
Args: 'a,
Ret: 'a,
Self: 'async_trait,
'a: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".