[−][src]Trait rlua_async::ChunkExt
Extension trait for rlua::Chunk
Note that there is currently no eval_async
function to match rlua::Chunk::eval
. This is
due to a missing function in the API of rlua::Chunk
. See also this pull
request.
Required methods
fn exec_async<'fut>(
self,
ctx: Context<'lua>
) -> Pin<Box<dyn Future<Output = Result<()>> + 'fut>> where
'lua: 'fut,
self,
ctx: Context<'lua>
) -> Pin<Box<dyn Future<Output = Result<()>> + 'fut>> where
'lua: 'fut,
Asynchronously execute this chunk of code. See also rlua::Chunk::exec
.
fn call_async<'fut, Arg, Ret>(
self,
ctx: Context<'lua>,
args: Arg
) -> Pin<Box<dyn Future<Output = Result<Ret>> + 'fut>> where
'lua: 'fut,
Arg: 'fut + ToLuaMulti<'lua>,
Ret: 'fut + FromLuaMulti<'lua>,
self,
ctx: Context<'lua>,
args: Arg
) -> Pin<Box<dyn Future<Output = Result<Ret>> + 'fut>> where
'lua: 'fut,
Arg: 'fut + ToLuaMulti<'lua>,
Ret: 'fut + FromLuaMulti<'lua>,
Load the chunk function and call it with the given arguments. See also
rlua::Chunk::call
.
Implementations on Foreign Types
impl<'lua, 'a> ChunkExt<'lua, 'a> for Chunk<'lua, 'a>
[src]
fn exec_async<'fut>(
self,
ctx: Context<'lua>
) -> Pin<Box<dyn Future<Output = Result<()>> + 'fut>> where
'lua: 'fut,
[src]
self,
ctx: Context<'lua>
) -> Pin<Box<dyn Future<Output = Result<()>> + 'fut>> where
'lua: 'fut,
fn call_async<'fut, Arg, Ret>(
self,
ctx: Context<'lua>,
args: Arg
) -> Pin<Box<dyn Future<Output = Result<Ret>> + 'fut>> where
'lua: 'fut,
Arg: 'fut + ToLuaMulti<'lua>,
Ret: 'fut + FromLuaMulti<'lua>,
[src]
self,
ctx: Context<'lua>,
args: Arg
) -> Pin<Box<dyn Future<Output = Result<Ret>> + 'fut>> where
'lua: 'fut,
Arg: 'fut + ToLuaMulti<'lua>,
Ret: 'fut + FromLuaMulti<'lua>,