/// Starts all the built-in instances, creating a `Patch` with persisted changes.
Starts all the built-in instances, creating a `Patch` with persisted changes.
Starts all the built - in instances creating a ` Patch ` with persisted changes .
pub(crate) fn start_builtin_instances(&mut self, fork: Fork) -> Patch {
        // Mark services as active.
        Self::activate_pending(&fork);
        // Start pending services.
        let mut schema = Schema::new(&fork);
        let pending_instances = schema.take_modified_instances();
        let patch = fork.into_patch();
        for (state, _) in pending_instances {
            let status = state.status;
            debug_assert_eq!(
                status,
                Some(InstanceStatus::Active),
                "BUG: The built-in service instance must have an active status at startup"
            );
            self.update_service_status(&patch, &state.spec, status.unwrap());
        }
        patch
    }
pub ( crate ) fn start_builtin_instances ( & mut self , fork : Fork ) -> Patch { // Mark services as active. Self :: activate_pending ( & fork ) ; // Start pending services. let mut schema = Schema :: new ( & fork ) ; let pending_instances = schema . take_modified_instances ( ) ; let patch = fork . into_patch ( ) ; for ( state , _ ) in pending_instances { let status = state . status ; debug_assert_eq ! ( status Some ( InstanceStatus Active ) " " ) ; self . update_service_status ( & patch , & state . spec , status . unwrap ( ) ) ; } patch }
Starts all the built-in instances, creating a `Patch` with persisted changes.
Starts all the built - in instances creating a ` Patch ` with persisted changes .
&mut self
fork
Fork