pub struct LuaRuntimeFactory { /* private fields */ }
Implementations§
Source§impl LuaRuntimeFactory
impl LuaRuntimeFactory
pub fn new() -> Self
pub fn add_loader<Load: AsyncCustomScriptLoad + 'static>( &mut self, tag: &'static str, loader: Load, )
pub fn remove_loader<S: AsRef<str>>(&mut self, tag: S)
pub fn load<S: AsRef<str>>( &self, script: S, envs: HashMap<String, String>, ) -> Result<LuaRuntime>
pub async fn build<S: AsRef<str>>( &self, script: S, envs: HashMap<String, String>, ) -> Result<LuaRuntime>
Trait Implementations§
Source§impl Default for LuaRuntimeFactory
impl Default for LuaRuntimeFactory
Source§fn default() -> LuaRuntimeFactory
fn default() -> LuaRuntimeFactory
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaRuntimeFactory
impl !RefUnwindSafe for LuaRuntimeFactory
impl Send for LuaRuntimeFactory
impl Sync for LuaRuntimeFactory
impl Unpin for LuaRuntimeFactory
impl !UnwindSafe for LuaRuntimeFactory
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