pub async fn add_eager_component<M>(
        &mut self,
        moniker: M,
        source: ComponentSource,
    ) -> Result<&mut Self, Error>
    where
        M: Into<Moniker>,
    {
        let moniker = moniker.into();
        self.add_component(moniker.clone(), source).await?;
        self.realm.mark_as_eager(&moniker)?;
        for ancestor in moniker.ancestry() {
            self.realm.mark_as_eager(&ancestor)?;
        }
        Ok(self)
    }
/// Identical to add_component, but the child (and any ancestors it has) will be marked as
/// eager from the root component.
Identical to add_component, but the child (and any ancestors it has) will be marked as
eager from the root component.
Identical to add_component but the child ( and any ancestors it has ) will be marked as eager from the root component .
pub async fn add_eager_component<M>(
        &mut self,
        moniker: M,
        source: ComponentSource,
    ) -> Result<&mut Self, Error>
    where
        M: Into<Moniker>,
    {
        let moniker = moniker.into();
        self.add_component(moniker.clone(), source).await?;
        self.realm.mark_as_eager(&moniker)?;
        for ancestor in moniker.ancestry() {
            self.realm.mark_as_eager(&ancestor)?;
        }
        Ok(self)
    }
pub async fn add_eager_component < M > ( & mut self , moniker : M , source : ComponentSource , ) -> Result < & mut Self , Error > where M : Into < Moniker > , { let moniker = moniker . into ( ) ; self . add_component ( moniker . clone ( ) , source ) . await ? ; self . realm . mark_as_eager ( & moniker ) ? ; for ancestor in moniker . ancestry ( ) { self . realm . mark_as_eager ( & ancestor ) ? ; } Ok ( self ) }
Identical to add_component, but the child (and any ancestors it has) will be marked as
eager from the root component.
Identical to add_component but the child ( and any ancestors it has ) will be marked as eager from the root component .
&mut self
moniker
M
source
ComponentSource
&mut self
moniker
M
source
ComponentSource