create_controller

Function create_controller 

Source
pub fn create_controller(
    name: &str,
) -> Result<Box<dyn ElifController>, BootstrapError>
Expand description

Convenience function to create a controller instance

§Arguments

  • name - Controller type name to instantiate

§Returns

  • Ok(Box<dyn ElifController>) - New controller instance
  • Err(BootstrapError) - If controller type is not registered