/// Creates this realm in a child component collection, using an autogenerated name for the
/// instance. By default this happens in the [`DEFAULT_COLLECTION_NAME`] collection.
///
/// After creation it connects to the fuchsia.component.Binder protocol exposed from the root
/// realm, which gets added automatically by the server.
Creates this realm in a child component collection, using an autogenerated name for the
instance. By default this happens in the [`DEFAULT_COLLECTION_NAME`] collection.

After creation it connects to the fuchsia.component.Binder protocol exposed from the root
realm, which gets added automatically by the server.
Creates this realm in a child component collection using an autogenerated name for the instance . By default this happens in the [ ` DEFAULT_COLLECTION_NAME ` ] collection . After creation it connects to the fuchsia . component . Binder protocol exposed from the root realm which gets added automatically by the server .
pub async fn build(self) -> Result<RealmInstance, Error> {
        let (component_runner_client_end, local_component_runner_task) =
            self.local_component_runner_builder.build().await?;
        let root_url = self.builder_proxy.build(component_runner_client_end).await??;
        let root = ScopedInstance::new(self.collection_name, root_url)
            .await
            .map_err(Error::FailedToCreateChild)?;
        root.connect_to_binder().map_err(Error::FailedToBind)?;
        Ok(RealmInstance { root, local_component_runner_task: Some(local_component_runner_task) })
    }
pub async fn build ( self ) -> Result < RealmInstance , Error > { let ( component_runner_client_end , local_component_runner_task ) = self . local_component_runner_builder . build ( ) . await ? ; let root_url = self . builder_proxy . build ( component_runner_client_end ) . await ? ? ; let root = ScopedInstance :: new ( self . collection_name , root_url ) . await . map_err ( Error :: FailedToCreateChild ) ? ; root . connect_to_binder ( ) . map_err ( Error :: FailedToBind ) ? ; Ok ( RealmInstance { root , local_component_runner_task : Some ( local_component_runner_task ) } ) }
Creates this realm in a child component collection, using an autogenerated name for the
instance.
Creates this realm in a child component collection using an autogenerated name for the instance .
self