pub(super) fn collect_modules<'config>(
    config: &'config TomlAppServiceConfig,
    modules_dir: &Path,
) -> TResult<Vec<Module<'config>>> {
    let module_paths = collect_module_paths(config, modules_dir);

    module_paths
        .into_iter()
        .map(|(name, path)| module_it_interface(path).map(|interface| Module::new(name, interface)))
        .collect::<Result<Vec<_>, _>>()
        .map_err(Into::into)
}
/// Returns all modules the provided config consists of.
Returns all modules the provided config consists of.
Returns all modules the provided config consists of .
pub(super) fn collect_modules<'config>(
    config: &'config TomlAppServiceConfig,
    modules_dir: &Path,
) -> TResult<Vec<Module<'config>>> {
    let module_paths = collect_module_paths(config, modules_dir);
    module_paths
        .into_iter()
        .map(|(name, path)| module_it_interface(path).map(|interface| Module::new(name, interface)))
        .collect::<Result<Vec<_>, _>>()
        .map_err(Into::into)
}
pub ( super ) fn collect_modules < ' config > ( config : & ' config TomlAppServiceConfig , modules_dir : & Path , ) -> TResult < Vec < Module < ' config > > > { let module_paths = collect_module_paths ( config , modules_dir ) ; module_paths . into_iter ( ) . map ( | ( name , path ) | module_it_interface ( path ) . map ( | interface | Module :: new ( name , interface ) ) ) . collect :: < Result < Vec < _ > , _ > > ( ) . map_err ( Into :: into ) }
Returns all modules the provided config consists of.
Returns all modules the provided config consists of .
config
&'config TomlAppServiceConfig
modules_dir
&Path