pub trait LuaChildLoader: Send + Sync {
// Required method
fn load(
&self,
config: &ChildConfig,
) -> Result<Box<dyn RunnableChild>, SpawnError>;
}Expand description
Trait for loading Lua children from config.
This abstraction allows the context to create LuaChild instances without depending directly on orcs-lua.
Required Methods§
Sourcefn load(
&self,
config: &ChildConfig,
) -> Result<Box<dyn RunnableChild>, SpawnError>
fn load( &self, config: &ChildConfig, ) -> Result<Box<dyn RunnableChild>, SpawnError>
Creates a RunnableChild from a config.