pub async fn resolve_decl(&self) -> Result<(), ModelError> {
        let mut state = await!(self.instance.state.lock());
        if state.decl.is_none() {
            let component = await!(self.resolver_registry.resolve(&self.instance.component_url))?;
            state.populate_decl(component.decl, &self)?;
        }
        Ok(())
    }
/// Resolves and populates the component declaration of this realm's Instance, if not already
/// populated.
Resolves and populates the component declaration of this realm's Instance, if not already
populated.
Resolves and populates the component declaration of this realm ' s Instance if not already populated .
pub async fn resolve_decl(&self) -> Result<(), ModelError> {
        let mut state = await!(self.instance.state.lock());
        if state.decl.is_none() {
            let component = await!(self.resolver_registry.resolve(&self.instance.component_url))?;
            state.populate_decl(component.decl, &self)?;
        }
        Ok(())
    }
pub async fn resolve_decl ( & self ) -> Result < ( ) , ModelError > { let mut state = await ! ( self instance state lock ( ) ) ; if state . decl . is_none ( ) { let component = await ! ( self resolver_registry resolve ( self instance component_url ) ) ? ; state . populate_decl ( component . decl , & self ) ? ; } Ok ( ( ) ) }
Resolves and populates the component declaration of this realm's Instance, if not already
populated.
Resolves and populates the component declaration of this realm ' s Instance if not already populated .
&self
&self