pub async fn new_instance(
        &self,
        url: impl Into<String>,
    ) -> Result<ScopedInstance, anyhow::Error> {
        let id: u64 = rand::thread_rng().gen();
        let child_name = format!("auto-{}", id);
        self.new_named_instance(child_name, url).await
    }
/// Creates and binds to a new component just like `new_named_instance`, but uses an
/// autogenerated name for the instance.
Creates and binds to a new component just like `new_named_instance`, but uses an
autogenerated name for the instance.
Creates and binds to a new component just like ` new_named_instance ` but uses an autogenerated name for the instance .
pub async fn new_instance(
        &self,
        url: impl Into<String>,
    ) -> Result<ScopedInstance, anyhow::Error> {
        let id: u64 = rand::thread_rng().gen();
        let child_name = format!("auto-{}", id);
        self.new_named_instance(child_name, url).await
    }
pub async fn new_instance ( & self , url : impl Into < String > , ) -> Result < ScopedInstance , anyhow :: Error > { let id : u64 = rand :: thread_rng ( ) . gen ( ) ; let child_name = format ! ( " " id ) ; self . new_named_instance ( child_name , url ) . await }
Creates and binds to a new component just like `new_named_instance`, but uses an
autogenerated name for the instance.
Creates and binds to a new component just like ` new_named_instance ` but uses an autogenerated name for the instance .
&self
url
impl Into<String>
&self
url
impl Into<String>