pub async fn add_local_child(
        &self,
        name: impl Into<String>,
        local_component_implementation: impl Fn(LocalComponentHandles) -> BoxFuture<'static, Result<(), anyhow::Error>>
            + Sync
            + Send
            + 'static,
        options: ChildOptions,
    ) -> Result<ChildRef, Error> {
        self.root_realm.add_local_child(name, local_component_implementation, options).await
    }
/// Adds a new component with a local implementation to the realm
Adds a new component with a local implementation to the realm
Adds a new component with a local implementation to the realm
pub async fn add_local_child(
        &self,
        name: impl Into<String>,
        local_component_implementation: impl Fn(LocalComponentHandles) -> BoxFuture<'static, Result<(), anyhow::Error>>
            + Sync
            + Send
            + 'static,
        options: ChildOptions,
    ) -> Result<ChildRef, Error> {
        self.root_realm.add_local_child(name, local_component_implementation, options).await
    }
pub async fn add_local_child ( & self , name : impl Into < String > , local_component_implementation : impl Fn ( LocalComponentHandles ) -> BoxFuture < ' static , Result < ( ) , anyhow :: Error > > + Sync + Send + ' static , options : ChildOptions , ) -> Result < ChildRef , Error > { self . root_realm . add_local_child ( name , local_component_implementation , options ) . await }
Adds a new component with a local implementation to the realm
Adds a new component with a local implementation to the realm
&self
name
impl Into<String>
local_component_implementation
impl Fn(LocalComponentHandles) -> BoxFuture<'static, Result<(), anyhow::Error>>
            + Sync
            + Send
            + 'static
options
ChildOptions
&self
name
impl Into<String>
local_component_implementation
impl Fn(LocalComponentHandles) -> BoxFuture<'static, Result<(), anyhow::Error>>
            + Sync
            + Send
            + 'static
options
ChildOptions