/// Adds a new component to the realm with the given component declaration
Adds a new component to the realm with the given component declaration
Adds a new component to the realm with the given component declaration
pub async fn add_child_from_decl(
        &self,
        name: impl Into<String>,
        decl: cm_rust::ComponentDecl,
        options: ChildOptions,
    ) -> Result<ChildRef, Error> {
        let name: String = name.into();
        self.realm_proxy
            .add_child_from_decl(&name, decl.native_into_fidl(), options.into())
            .await??;
        Ok(ChildRef::new(name, self.realm_path.clone()))
    }
pub async fn add_child_from_decl ( & self , name : impl Into < String > , decl : cm_rust :: ComponentDecl , options : ChildOptions , ) -> Result < ChildRef , Error > { let name : String = name . into ( ) ; self . realm_proxy . add_child_from_decl ( & name , decl . native_into_fidl ( ) , options . into ( ) ) . await ? ? ; Ok ( ChildRef :: new ( name , self . realm_path . clone ( ) ) ) }
Adds a new component to the realm with the given component declaration
Adds a new component to the realm with the given component declaration
&self
name
impl Into<String>
decl
cm_rust::ComponentDecl
options
ChildOptions