pub struct LuaConfig { /* private fields */ }
Implementations§
source§impl LuaConfig
impl LuaConfig
sourcepub async fn convert_args_and_call_callback<'lua, A: Serialize>(
&'lua mut self,
sig: &CallbackSignature<'lua, Value<'lua>, ()>,
args: A,
) -> Result<()>
pub async fn convert_args_and_call_callback<'lua, A: Serialize>( &'lua mut self, sig: &CallbackSignature<'lua, Value<'lua>, ()>, args: A, ) -> Result<()>
Intended to be used together with kumo.spawn_task
pub async fn async_call_callback<'lua, A: IntoLuaMulti<'lua> + Clone, R: FromLuaMulti<'lua> + Default>( &'lua mut self, sig: &CallbackSignature<'lua, A, R>, args: A, ) -> Result<R>
pub async fn async_call_callback_non_default<'lua, A: IntoLuaMulti<'lua> + Clone, R: FromLuaMulti<'lua>>( &'lua mut self, sig: &CallbackSignature<'lua, A, R>, args: A, ) -> Result<R>
pub async fn async_call_callback_non_default_opt<'lua, A: IntoLuaMulti<'lua> + Clone, R: FromLua<'lua>>( &'lua mut self, sig: &CallbackSignature<'lua, A, Option<R>>, args: A, ) -> Result<Option<R>>
pub fn remove_registry_value(&mut self, value: RegistryKey) -> Result<()>
sourcepub async fn async_call_ctor<'lua, A: IntoLuaMulti<'lua> + Clone>(
&'lua mut self,
sig: &CallbackSignature<'lua, A, Value<'lua>>,
args: A,
) -> Result<RegistryKey>
pub async fn async_call_ctor<'lua, A: IntoLuaMulti<'lua> + Clone>( &'lua mut self, sig: &CallbackSignature<'lua, A, Value<'lua>>, args: A, ) -> Result<RegistryKey>
Call a constructor registered via on
. Returns a registry key that can be
used to reference the returned value again later on this same Lua instance
sourcepub async fn with_registry_value<'lua, F, R, FUT>(
&'lua mut self,
value: &RegistryKey,
func: F,
) -> Result<R>
pub async fn with_registry_value<'lua, F, R, FUT>( &'lua mut self, value: &RegistryKey, func: F, ) -> Result<R>
Operate on an object/value that was previously constructed via async_call_ctor.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LuaConfig
impl !RefUnwindSafe for LuaConfig
impl Send for LuaConfig
impl !Sync for LuaConfig
impl Unpin for LuaConfig
impl !UnwindSafe for LuaConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more