/// Creates a new component model and initializes its topology.
Creates a new component model and initializes its topology.
Creates a new component model and initializes its topology .
pub fn new(params: ModelParams) -> Model {
        Model {
            root_realm: Arc::new(Realm {
                resolver_registry: Arc::new(params.root_resolver_registry),
                default_runner: Arc::new(params.root_default_runner),
                abs_moniker: AbsoluteMoniker::root(),
                instance: Instance {
                    component_url: params.root_component_url,
                    // Started by main().
                    startup: fsys::StartupMode::Lazy,
                    state: Mutex::new(InstanceState {
                        execution: None,
                        child_realms: None,
                        decl: None,
                    }),
                },
            }),
        }
    }
pub fn new ( params : ModelParams ) -> Model { Model { root_realm : Arc :: new ( Realm { resolver_registry : Arc :: new ( params . root_resolver_registry ) , default_runner : Arc :: new ( params . root_default_runner ) , abs_moniker : AbsoluteMoniker :: root ( ) , instance : Instance { component_url : params . root_component_url , // Started by main(). startup : fsys :: StartupMode :: Lazy , state : Mutex :: new ( InstanceState { execution : None , child_realms : None , decl : None , } ) , } , } ) , } }
Creates a new component model and initializes its topology.
Creates a new component model and initializes its topology .
params
ModelParams