Skip to main content

LuaChildLoader

Trait LuaChildLoader 

Source
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§

Source

fn load( &self, config: &ChildConfig, ) -> Result<Box<dyn RunnableChild>, SpawnError>

Creates a RunnableChild from a config.

Implementors§