pub async fn create_with_name(self, child_name: String) -> Result<RealmInstance, Error> {
        let (root_url, collection_name, mocks_runner) = self.initialize().await?;
        let root = ScopedInstance::new_with_name(child_name, 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. By default this happens in the
/// [`DEFAULT_COLLECTION_NAME`] collection.
Creates this realm in a child component collection. By default this happens in the
[`DEFAULT_COLLECTION_NAME`] collection.
Creates this realm in a child component collection . By default this happens in the [ ` DEFAULT_COLLECTION_NAME ` ] collection .
pub async fn create_with_name(self, child_name: String) -> Result<RealmInstance, Error> {
        let (root_url, collection_name, mocks_runner) = self.initialize().await?;
        let root = ScopedInstance::new_with_name(child_name, 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_with_name ( self , child_name : String ) -> Result < RealmInstance , Error > { let ( root_url , collection_name , mocks_runner ) = self . initialize ( ) . await ? ; let root = ScopedInstance :: new_with_name ( child_name , 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.
Creates this realm in a child component collection .
self
child_name
String
self
child_name
String