pub trait LuaNativeAsyncFn<A: FromLuaMulti> {
type Output: IntoLuaMulti;
// 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§
type Output: IntoLuaMulti
Required 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.