pub trait LuaNativeAsyncFn<A: FromLuaMulti> {
type Output;
// Required method
fn call(
&self,
args: A,
) -> impl Future<Output = Self::Output> + MaybeSend + 'static;
}Available on crate feature
async only.Expand description
A trait for types that returns a future and can be used as Lua functions.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".