Trait mlua_luau_scheduler::IntoLuaThread
source · pub trait IntoLuaThread<'lua> {
// Required method
fn into_lua_thread(self, lua: &'lua Lua) -> LuaResult<LuaThread<'lua>>;
}
Expand description
Trait for any struct that can be turned into an LuaThread
and passed to the scheduler, implemented for the following types:
- Lua threads (
LuaThread
) - Lua functions (
LuaFunction
) - Lua chunks (
LuaChunk
)