pub async fn create(self) -> Result<RealmInstance, Error> {
        let (root_url, collection_name, mocks_runner) = self.initialize().await?;
        let root = ScopedInstance::new(collection_name, root_url)
            .await
            .map_err(RealmError::FailedToCreateChild)?;
        root.connect_to_binder().map_err(Error::FailedToBind)?;
        Ok(RealmInstance { root, mocks_runner })
    }
/// 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 create(self) -> Result<RealmInstance, Error> {
        let (root_url, collection_name, mocks_runner) = self.initialize().await?;
        let root = ScopedInstance::new(collection_name, root_url)
            .await
            .map_err(RealmError::FailedToCreateChild)?;
        root.connect_to_binder().map_err(Error::FailedToBind)?;
        Ok(RealmInstance { root, mocks_runner })
    }
pub async fn create ( self ) -> Result < RealmInstance , Error > { let ( root_url , collection_name , mocks_runner ) = self . initialize ( ) . await ? ; let root = ScopedInstance :: new ( collection_name , root_url ) . await . map_err ( RealmError :: FailedToCreateChild ) ? ; root . connect_to_binder ( ) . map_err ( Error :: FailedToBind ) ? ; Ok ( RealmInstance { root , mocks_runner } ) }
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
self