pub trait LuaNativeAsyncFn<A: FromLuaMulti> {
type Output: IntoLuaMulti;
// Required method
fn call(
&self,
args: A,
) -> impl Future<Output = Self::Output> + MaybeSend + 'static;
}
Expand description
A trait for types that returns a future and can be used as Lua functions.
Required Associated Types§
type Output: IntoLuaMulti
Required Methods§
Object Safety§
This trait is not object safe.