pub fn handle_module(name: &str, context: &Context) -> Option<Box<dyn Module>>Expand description
Central module dispatcher - creates module instances based on name
Implements the Factory pattern for dynamic module creation. Returns a boxed module instance if the name matches a known module.
§Arguments
name- Module name from the format string (e.g., “directory”)context- Current execution context
§Returns
Some(Box<dyn Module>)- Module instance if name is recognizedNone- If the module name is unknown