/// Replaces the decl for a child of this realm
Replaces the decl for a child of this realm
Replaces the decl for a child of this realm
pub async fn replace_component_decl(
        &self,
        child_ref: impl Into<ChildRef>,
        decl: cm_rust::ComponentDecl,
    ) -> Result<(), Error> {
        let child_ref: ChildRef = child_ref.into();
        child_ref.check_scope(&self.realm_path)?;
        self.realm_proxy.replace_component_decl(&child_ref.name, decl.native_into_fidl()).await??;
        Ok(())
    }
pub async fn replace_component_decl ( & self , child_ref : impl Into < ChildRef > , decl : cm_rust :: ComponentDecl , ) -> Result < ( ) , Error > { let child_ref : ChildRef = child_ref . into ( ) ; child_ref . check_scope ( & self . realm_path ) ? ; self . realm_proxy . replace_component_decl ( & child_ref . name , decl . native_into_fidl ( ) ) . await ? ? ; Ok ( ( ) ) }
Replaces the decl for a child of this realm
Replaces the decl for a child of this realm
&self
child_ref
impl Into<ChildRef>
decl
cm_rust::ComponentDecl